added so the dialog doesn't display when game is exited