Lua: remove globals like dofile, loadfile and coroutines
Catch luabind errors while executing event handlers and log them.