I don't think there's any question in ethical thinking that if treatment is medically futile, you don't continue it. But what is 'medically futile?' Often there's no clear line.