Throw errors if some commands terminate with a non-zero return code (part 2)