closeEvent#

MainWindow.closeEvent(event)#

Tidy up onclosing the application.