made Lua state static for atexit, cleanup err msgs