quit on close

This is to make the application automatically quit when the user closes the last window, as opposed to requiring the user to still select quit from the menu when nothing is left on the screen