Stop threads when game is paused.