Quit when last window closed.