public static void registerExceptionHandler() {
	    Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler());
	    System.setProperty("sun.awt.exception.handler", ExceptionHandler.class.getName());
	}