refine exiting