code: func (c *Connection) shutdown() {
  	c.log("SHUTDOWN", "starts")
  	c.shutdownHeartBeats()
  	// Close all individual subscribe channels
  	// This is a write lock
  	c.subsLock.Lock()
  	for key := range c.subs {
  		close(c.subs[key].md)
  		c.subs[key].cs = true
  	}
  	c.connLock.Lock()
  	c.connected = false
  	c.connLock.Unlock()
  	c.subsLock.Unlock()
  	c.log("SHUTDOWN", "ends")
  	return
  }
docs: /*
  	Shutdown logic.
  */