code: public static void cleanup(final Logger log, final AutoCloseable... closeables) {
  		for (AutoCloseable c : closeables) {
  			if (c != null) {
  				try {
  					c.close();
  				} catch (Exception e) {
  					if (log != null && log.isDebugEnabled()) {
  						log.debug("Exception in closing " + c, e);
  					}
  				}
  			}
  		}
  	}
docs: Close the AutoCloseable objects and <b>ignore</b> any {@link Exception} or
  null pointers. Must only be used for cleanup in exception handlers.
  
  @param log
  the log to record problems to at debug level. Can be <code>null</code>.
  @param closeables
  the objects to close