Report exception when failing to register hook