some changes to Context#exception_handler