private void exitWithError(String message, Throwable t) {
		failed = true;

		// this prevents error messages getting interspursed with output messages
		flush();

		if (!exitOnError) {
			// the test environment does not want to exit, so just print the error, even though
			// it may appear in the incorrect order with the builder's output messages
			System.err.println(message);
			if (t != null) {
				t.printStackTrace(System.err);
			}
			return;
		}

		// Unusual Code Alert!: If we print the error right away, sometimes the System.out
		// data has not yet been flushed.  Using a thread, with a sleep seems to work.
		PrintErrorRunnable runnable = new PrintErrorRunnable(message, t);
		Thread thread = new Thread(runnable);
		thread.setDaemon(false);
		thread.start();

		try {
			thread.join(2000);
		}
		catch (InterruptedException e) {
			// just exit
		}

		System.exit(1);
	}
A class to build help for an entire 'G' application.  This class will take in a list of
module paths and build the help for each module.  To build single modules, call this class
with only one module path.
<p>
Note: Help links must not be absolute.  They can be relative, including <code>. and ..</code>
syntax.  Further, they can use the special help system syntax, which is:
<ul>
	<li><code><b>help/topics/</b>topicName/Filename.html</code> for referencing help topic files</li>
 <li><code><b>help/</b>shared/image.png</code> for referencing image files at paths rooted under
                                           the module's root help dir</li>
</ul>
Ghidra/Framework/Help/src/main/java/help/GHelpBuilder.java