public static void closeQuietly(AutoCloseable resource) {
    try {
      if (resource != null) {
        resource.close();
      }
    } catch (Exception e) {
      logger.warn("Closing resource", e);
    }
  }
Close a resource without throwing exception.
@param resource the resource to close.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java