public static void uncheckedClose(AutoCloseable c, String msg) {
		try {
			if (c != null) {
				c.close();
			}
		}
		catch (Exception e) {
			Msg.warn(FSUtilities.class, Objects.requireNonNullElse(msg, "Problem closing object"),
				e);
		}
	}
Helper method to invoke close() on a AutoCloseable without having to catch
an IOException.

@param c {@link AutoCloseable} to close
@param msg optional msg to log if exception is thrown, null is okay
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FSUtilities.java