add support for generating and handling "exception throw" events