bug 988603 - set an appropriate exit code on halt_on_failure. r=jlund