* fixed closing MainWindow