Protect against accidental close of window

It seems there is no protection against the user accidentally closing the Clozemaster window in the midst of playing, losing all context.

I think the recently added warning about leaving the game by following a link could also be applied to this scenario.