Fix quit_callback