Fixed problem with quitting dialog appearing when chatting