Adding the haltOnSevereError option