code: func (c *Client) Leave() error {
  	c.logger.Printf("[INFO] consul: client starting leave")
  
  	// Leave the LAN pool
  	if c.serf != nil {
  		if err := c.serf.Leave(); err != nil {
  			c.logger.Printf("[ERR] consul: Failed to leave LAN Serf cluster: %v", err)
  		}
  	}
  	return nil
  }
docs: // Leave is used to prepare for a graceful shutdown