Try to handle halts status with trap handlers first
Allow calling halt from trap handler
Merge pull request #315 from mnylen/halt-and-trap

Run status code handlers when halt()'d (fixes #308)