This is the fix to get the correct exit code and the StandardError from the process. (without exitCode = 0 and StandardError is empty)

That's why you wouldn't get the error status before