(MainWindow): Renamed _OnClose() back to OnClose() to keep in sync with extensions. Internally Thuban still uses "underscored" names.