Don't call Lua events from the destructor of MapEntities.