Fixed issue with native dialogs closing causing the game to exit.