MainFrame::onDestroy