Deal with commands returning non-zero exit code.