fix bug where app wouldn't close if edit window was open when main window was closed