TODO resovled: clean up Lua state on termination of dst_lua.