boolean canClose(Program program) {
		if (!isOnlyToolConsumer(program)) {
			return true;
		}
		if (acquireSaveLock(program, "Close")) {
			try {
				return handleChangedProgram(program);
			}
			finally {
				program.unlock();
			}
		}
		return false;
	}
Checks the given program for changes and performs the save if necessary.  The user
is prompted before the save is performed.
@param program program to be closed
@return true if the program can be closed, or false if the operation was cancelled by
the user
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/ProgramSaveManager.java