Clean-up Lua state ownership