code: func (p *Plugin) Close() error {
  	//TODO close error report channel
  
  	p.mu.Lock()
  	defer p.mu.Unlock()
  
  	p.registrations = make(map[string]*registration)
  
  	return nil
  }
docs: // Close TODO set flag that ignore errors => not start Resync while agent is stopping
  // TODO kill existing Resync timeout while agent is stopping