later he exercised judicial positions in peru where he settled for the rest of his life