code: func (a *Astilectron) watchCmd(cmd *exec.Cmd) {
  	// Wait
  	cmd.Wait()
  
  	// Check the canceller to check whether it was a crash
  	if !a.canceller.Cancelled() {
  		astilog.Debug("App has crashed")
  		a.dispatcher.dispatch(Event{Name: EventNameAppCrash, TargetID: targetIDApp})
  	} else {
  		astilog.Debug("App has closed")
  		a.dispatcher.dispatch(Event{Name: EventNameAppClose, TargetID: targetIDApp})
  	}
  	a.dispatcher.dispatch(Event{Name: EventNameAppCmdStop, TargetID: targetIDApp})
  }
docs: // watchCmd watches the cmd execution