RED: Added a line in assertAbort() to check if a proper exit code was set during errors.