fixes a bug in PhysicsSystem where mobile entities were not deleted properly after they quit