add virtual to destructor of LuaScript class