added guts.app.pop_all_states_on_exit