Terminating the game when it looses focus is not exactly acceptable. There is no reason for the game to terminate.