code: func (p *Process) Close() (err error) {
  	// Kill process.
  	if p.cmd != nil {
  		if e := p.cmd.Process.Kill(); e != nil && err == nil {
  			err = e
  		}
  		p.cmd.Wait()
  	}
  
  	// Remove shim file.
  	if p.path != "" {
  		if e := os.RemoveAll(p.path); e != nil && err == nil {
  			err = e
  		}
  	}
  
  	return err
  }
docs: // Close stops the process.