code: func (c *StatsConnection) Disconnect() {
  	if c == nil {
  		return
  	}
  
  	if c.statsClient != nil {
  		c.disconnectClient()
  	}
  }
docs: // Disconnect disconnects from Stats API and releases all connection-related resources.