Pause game when switch to another tab.