Fix the double QUIT from notifyQuit method.