public boolean preShutdown() {
Log.getInstance(ApplicationWorkbenchAdvisor.class).debug("Shutting down."); //$NON-NLS-1$
Controller.getInstance().setApplicationStopping(true);
ApplicationCloser applicationCloser = new ApplicationCloser();
ProgressMonitorDialog dialog = new ProgressMonitorDialog(Display.getDefault().getActiveShell());
try {
dialog.run(false, false, applicationCloser);