Stop registering a custom exception handler