all app stages exit on main stage close