code: func (a *Agent) remoteExecWriteExitCode(event *remoteExecEvent, exitCode *int) bool {
  	val := []byte(strconv.FormatInt(int64(*exitCode), 10))
  	if err := a.remoteExecWriteKey(event, remoteExecExitSuffix, val); err != nil {
  		a.logger.Printf("[ERR] agent: failed to write exit code for remote exec job: %v", err)
  		return false
  	}
  	return true
  }
docs: // remoteExecWriteExitCode is used to write an exit code