code: func (m *Manager) removeProxyServiceLocked(proxyID string) {
  	state, ok := m.proxies[proxyID]
  	if !ok {
  		return
  	}
  
  	// Closing state will let the goroutine we started in Ensure finish since
  	// watch chan is closed.
  	state.Close()
  	delete(m.proxies, proxyID)
  
  	// We intentionally leave potential watchers hanging here - there is no new
  	// config for them and closing their channels might be indistinguishable from
  	// an error that they should retry. We rely for them to eventually give up
  	// (because they are in fact not running any more) and so the watches be
  	// cleaned up naturally.
  }
docs: // removeProxyService is called when a service deregisters and frees all
  // resources for that service.