REFAC: Separated and indented part of code in MainWindow::closeEvent().
REFAC: Separated and indented part of code in MainWindow::closeEvent().

orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB