code: public static boolean safeCloseAll(Iterable<? extends Closeable> closeables) {
          final Iterator<? extends Closeable> it = closeables.iterator();
          boolean result = true;
          while (it.hasNext()) {
              result &= safeClose(it.next());
          }
          return result;
      }
docs: Closes all of the given {@link Closeable Closeables} by calling
  {@link #safeClose(Closeable)} for each element returned by the Iterable.
  
  @param closeables The of Closeables.
  @return Whether closing of all Closables was successful.