Canada’s former chief justice is retiring from Hong Kong’s highest court just days after two British judges quit the court in the wake of the conviction of pro-democracy activists under the city’s national security law.

Beverley McLachlin said in a statement Monday that she will retire as a nonpermanent judge of the Hong Kong Court of Final Appeal when her term ends on July 19. She said at 80, she wants to spend more time with her family, but “will continue certain professional responsibilities.”