code: func (a *Agent) reapServices() {
  	for {
  		select {
  		case <-time.After(a.config.CheckReapInterval):
  			a.reapServicesInternal()
  
  		case <-a.shutdownCh:
  			return
  		}
  	}
  
  }
docs: // reapServices is a long running goroutine that looks for checks that have been
  // critical too long and deregisters their associated services.