code: func (d *Driver) waitStopped() error {
  	log.Infof("Waiting for host to stop...")
  
  	for {
  		s, err := d.GetState()
  		if err != nil {
  			return err
  		}
  
  		if s != state.Running {
  			return nil
  		}
  
  		time.Sleep(1 * time.Second)
  	}
  }
docs: // waitStopped waits until the host is stopped