Add support for "exception trapping"