public void closeTool() {
		if (tool == null) {
			Msg.info(this, "Test Env tool does not exist; cannot close");
			return;
		}

		closeAllProgramsFor(tool);

		// don't want to prompt for saving
		AbstractGuiTest.runSwing(() -> {
			tool.setConfigChanged(false);

		});
		AbstractGuiTest.runSwing(() -> tool.close(), false);
		AbstractGuiTest.waitForSwing();

		tool = null;
	}
Closes the TestEnv's default tool.  This method is asynchronous, so you
must wait for the Swing thread to perform the work yourself.
Watch out for modal dialogs.
Ghidra/Features/Base/src/main/java/ghidra/test/TestEnv.java