code: protected void stopHeartbeatForThisSession()
    {
      if (enableHeartbeat && !Strings.isNullOrEmpty(masterToken))
      {
        logger.debug("stop heartbeat");
  
        HeartbeatBackground.getInstance().removeSession(this);
      }
      else
      {
        logger.debug("heartbeat not enabled for the session");
      }
    }
docs: Stop heartbeat for this session