code: func (p *Provider) Stop() error {
  	p.stopOnce.Do(p.stopInit)
  
  	p.stopMu.Lock()
  	defer p.stopMu.Unlock()
  
  	p.stopCtxCancel()
  	return nil
  }
docs: // Stop implementation of terraform.ResourceProvider interface.