public static void maybeCloseQuietly(Object maybeCloseable, String name) {
        if (maybeCloseable instanceof AutoCloseable)
            closeQuietly((AutoCloseable) maybeCloseable, name);
    }
Closes {@code maybeCloseable} if it implements the {@link AutoCloseable} interface,
and if an exception is thrown, it is logged at the WARN level.
clients/src/main/java/org/apache/kafka/common/utils/Utils.java