exit closes the window