Destroying an entity correctly invalidates all other references.