Added so you can press the window close button