add debugging logs for the Lua VM initialization and shutdown.