Add an exception handler contract.