The game should now shut down properly when the current window is closed out.