The game console does now close when the main window is closed