Bug 262222 [Workbench] Workbench.shutdown() doesn't complete due to exception
bundles/org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.java
*/
		public void block() {
			if (display == Display.getCurrent()) {
				int exceptionCount = 0;
				while (continueEventDispatching) {
					
					
					try {
						if (!display.readAndDispatch()) {
							display.sleep();
						}
						exceptionCount = 0;
					}
					
					
					
					catch (ThreadDeath e) {
						throw (e);
					}
					
					catch (Throwable t) {
						exceptionCount++;
						if (exceptionCount > 2 || display.isDisposed()) {
			                if (t instanceof RuntimeException) {
								throw (RuntimeException) t;
							} else if (t instanceof Error) {
								throw (Error) t;
							} else {
								throw new RuntimeException(t);
							}