Add haltOnError option
Merge pull request #24 from UseAllFive/f_add-haltOnError-option

Add haltOnError option