Forwarding of Lua crashes

When a crash occurs during execution of a Lua provider, the engine
forwards the crash to an event handler, allowing clients to display
messages and properly recover from the crash.