code: public static void closeQuietly(Closeable closeable) {
      try {
        if (closeable != null) {
          closeable.close();
        }
      } catch (IOException e) {
        logger.error("IOException should not have been thrown.", e);
      }
    }
docs: Closes the given object, ignoring IOExceptions.