add close function for curator.