Only show the confirm quit dialogue if you are in-game. Otherwise just
quit unconditionally, as there is nothing important to save.