Clear component manager after all entities deleted.