Quits when lose/win game.