Fix EZP-22131: handle exceptions in legacy kernel callback
Merge pull request #855 from ezsystems/fix/EZP-22131-legacy_callback_exceptions

Fix EZP-22131: handle exceptions in legacy kernel callback