wait_for_quit approach