Don't call clear_quit_flag in captured_main