When is an object destroyed?