Check if all objects are deleted before attempting to delete container.