Fixed crash on exit/map shutdown for some single player maps, due some debug code for output events creating new entities during map destruction.