Close the window instead of quitting the application