Factored out quit/confirmquit logic into ui_manager::request_quit()