Protects the player from drowning when suddenly exit of a window game. Защищает игрока от утопления при внезапном выходе из окна игры.