Added support for hooking context exceptions