code: public void stop() {
  		if (!PlatformUI.isWorkbenchRunning())
  			return;
  		final IWorkbench workbench = PlatformUI.getWorkbench();
  		final Display display = workbench.getDisplay();
  		display.syncExec(new Runnable() {
  			public void run() {
  				if (!display.isDisposed())
  					workbench.close();
  			}
  		});
  	}
docs: /* (non-Javadoc)
  @see org.eclipse.equinox.app.IApplication#stop()