Fix container destruction

This addresses #3041 by refusing to consume items that contain other items.