Luau scripts have a lot more ways to crash than LSL scripts. I wrote this as a proof of concept on making LLTimers and LLEvents crash proof:
It might be nice if there was a function like
LLEvents:setDefaultErrorHandler(errorHandler)
that did the same thing the above code does, without needing to wrap/monkey patch anything.