Revert "Remove exception handler. Move to core."

This reverts commit 27aa85ccdb8db9a003dc23c7b88e10bd652df514.
Revert "Revert "Remove exception handler. Move to core.""

This reverts commit 690edce644c064562ff0fec4f3888eecfcca6be1.