0 doesn't return the correct exit status

Add specs, one failing in jruby because we can't get the correct exit code there