Fixed closing window bug. Now when you close the window, the game quits.
Merge pull request #1 from rexim/close-window-bug

Fixed closing window bug.