Replace checks to haltOnErrors to use failMaybe.

I'll move it to a package level function soon.