Check for non-zero exit code explicitly