She knew that he didn’t want to linger in a machine-enabled purgatory. But he would choose to undergo our interventions if there was a chance he could get well enough to return home, to be with her and the family, for whatever time he had remaining. We would take the chance.

I called the anesthesiologists. My patient’s wife held his hand as they sedated and paralyzed him so that they could place a breathing tube down his throat.

And with that, a man with a terminal illness ended up in the I.C.U., intubated, maybe dying. We know the numbers. More than 80 percent of people say they would prefer to die at home, and yet more than half of them die here in the hospital, surrounded by noise and strange smells and tubes and machines.

It’s a message that I continue to hear: Dying in an I.C.U. is a bad death that occurs when communication and understanding break down, while dying at home is a success. There is some truth to this. I have seen many men and women, bald and withered and suffering, tethered to machines that serve only to prolong an end that is inevitable.

But to cast an I.C.U. death as the negative outcome of poor communication and decision-making is too simple. Intensive care at the end of life is very often fluid, our treatments and decisions nuanced. Consider another patient, a frail man in his 80s, also with lung cancer, whose oncologist had told him he had maybe a month, at most. As his breathing grew more labored, he ended up in the I.C.U. We could not cure him — his doctors knew that, and he did, too. But perhaps we could help. We supported his breathing with high levels of oxygen, while we drained the fluid around his lung and gave him intravenous diuretics. We subjected him to the stress of the I.C.U. and a procedure, yes, but his breathing improved, not enough for him to go home again, but enough for him to be able to return to the general medical floor of the hospital. Some might argue that his story exemplifies what is wrong with our system, an example of an invasive, resource-intensive intervention in the last few weeks of life. And yet, seeing him sitting up in bed and able to take a deep breath, I considered his treatment a success — even if it bought him only days.