ensure non zero exit code