Register the exception handler where necessary