Sending emails when the server closes a game

Ending emails are sent when the game closes automatically because the deadline has passed.