code: func (s *State) SetRemovalError(err error) {
  	s.SetError(err)
  	s.Lock()
  	close(s.waitRemove) // Unblock those waiting on remove.
  	// Recreate the channel so next ContainerWait will work
  	s.waitRemove = make(chan struct{})
  	s.Unlock()
  }
docs: // SetRemovalError is to be called in case a container remove failed.
  // It sets an error and closes the internal waitRemove channel to unblock
  // callers waiting for the container to be removed.