Add callback to exception listener