Close lua state when LuaEngine::exec() fails