Compatibility fix. Other finetune to exception logging