Adding a cleanup task to remove invalid entities from the spawned mob storage.