handle Lua "error" in user code