It's weird that other specs depends on it. I mean, the cmd is always executed here, and it will set the var to 0 if there were no errors.