code: func (vm *InprocVM) Wait(ccid ccintf.CCID) (int, error) {
  	instName := vm.GetVMName(ccid)
  	ipc := vm.registry.getInstance(instName)
  	if ipc == nil {
  		return 0, fmt.Errorf("%s not found", instName)
  	}
  
  	<-ipc.stopChan
  
  	return 0, nil
  }
docs: // Wait will block until the chaincode is stopped.