public boolean canCloseDomainObject(DomainObject domainObject) {
		if (taskMgr.hasTasksForDomainObject(domainObject)) {
			String name = domainObject.getName();
			Msg.showInfo(getClass(), getToolFrame(), "Close " + name + " Failed",
				"The tool is currently working in the background on " + name +
					".\nPlease stop the background processing first.");

			return false;
		}
		return pluginMgr.canCloseDomainObject(domainObject);
	}
Can the domain object be closed?
<br>Note: This forces plugins to terminate any tasks they have running for the
indicated domain object and apply any unsaved data to the domain object. If they can't do
this or the user cancels then this returns false.

@param domainObject the domain object to check
@return false any of the plugins reports that the domain object
should not be closed
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/PluginTool.java