Added destroy event to main window in editor.glade