add ability to hook into exceptions