Add an event that triggers right before the changemap or restart (before you destroy entities)
Because you are destroying them randomly and some problems can occur after that point.