Use deleteLater in QgisApp::deleteComposerManager