code: public void close() throws SFException, SnowflakeSQLException
    {
      logger.debug(" public void close()");
  
      // stop heartbeat for this session
      stopHeartbeatForThisSession();
  
      if (isClosed)
      {
        return;
      }
  
      SessionUtil.LoginInput loginInput = new SessionUtil.LoginInput();
      loginInput.setServerUrl(
          (String) connectionPropertiesMap.get(SFSessionProperty.SERVER_URL))
          .setSessionToken(sessionToken)
          .setLoginTimeout(loginTimeout);
  
      SessionUtil.closeSession(loginInput);
      closeTelemetryClient();
      clientInfo.clear();
      isClosed = true;
    }
docs: Close the connection
  
  @throws SnowflakeSQLException if failed to close the connection
  @throws SFException           if failed to close the connection