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

Fix EZP-22131: handle exceptions in legacy kernel callback