code: func (a *Agent) Leave() error {
  	if a.serf == nil {
  		return nil
  	}
  
  	a.logger.Println("[INFO] agent: requesting graceful leave from Serf")
  	return a.serf.Leave()
  }
docs: // Leave prepares for a graceful shutdown of the agent and its processes