Added a dialog to prompt the user when exiting an active game.