Check that the process exited normally, ie with exitCode 0. If not, throw ProcessExitException.
if exitCode != 0
exitCode != 0