code: public static boolean tryToClose(Closeable closeable) {
          Object token = ThreadIdentityManager.runAsServer();
          try {
              if (closeable != null) {
                  try {
                      closeable.close();
                      return true;
                  } catch (IOException e) {
                      // ignore
                  }
              }
          } finally {
              ThreadIdentityManager.reset(token);
          }
          return false;
      }
docs: Close the closeable object
  
  @param closeable