code: func (c *controller) agentStopComplete() {
  	c.Lock()
  	if c.agentStopDone != nil {
  		close(c.agentStopDone)
  		c.agentStopDone = nil
  	}
  	c.Unlock()
  }
docs: // agentStopComplete notifies the successful completion of the Agent stop