Fixed a bug with closing the game window

Closing the game window with Alt-F4 would keep the program in memory.
This has been fixed.