Returning the exit code of the program that failed