code: public static void closeAll(
              @Nonnull final Logger log,
              @Nonnull final Closeable... closeables
      ) {
          closeAll(Arrays.asList(closeables), log);
      }
docs: Close all {@link Closeable} objects provided in the {@code closeables}
  iterator. When encountering an error when closing, write the message out
  to the provided {@code log}.
  
  @param log The log where we will write error messages when failing to
  close a closeable.
  @param closeables The closeables that we want to close.