code: func (s *LocalSupervisor) RemoveService(srv Service) error {
  	l := logrus.WithFields(logrus.Fields{"service": srv.Name(), trace.Component: teleport.Component(teleport.ComponentProcess, s.id)})
  	s.Lock()
  	defer s.Unlock()
  	for i, el := range s.services {
  		if el == srv {
  			s.services = append(s.services[:i], s.services[i+1:]...)
  			l.Debugf("Service is completed and removed.")
  			return nil
  		}
  	}
  	l.Warningf("Service is completed but not found.")
  	return trace.NotFound("service %v is not found", srv)
  }
docs: // RemoveService removes service from supervisor tracking list