code: func (a *Agent) DeregisterEventHandler(eh EventHandler) {
  	a.eventHandlersLock.Lock()
  	defer a.eventHandlersLock.Unlock()
  
  	delete(a.eventHandlers, eh)
  	a.eventHandlerList = nil
  	for eh := range a.eventHandlers {
  		a.eventHandlerList = append(a.eventHandlerList, eh)
  	}
  }
docs: // DeregisterEventHandler removes an EventHandler and prevents more invocations