Added panic function for Lua errors.