Quit the app when windows is closed.