main window cleanup