Quit editor app when main window is closed