code: public static void closeQuietly(@Nullable final Closeable closeable, @Nonnull final Logger log) {
          try {
              if (null != closeable) {
                  closeable.close();
              }
          } catch (Exception e) {
              log.error("Exception during cleanup of a Closeable, ignoring", e);
          }
      }
docs: this is very similar to guava's {#link Closeables.closeQuietly()}, except with logging
  unlike guava this swallows all Exceptions, not just IOExceptions. Error is still propagated.
  @param closeable closeable to close
  @param log logger to use