Indeed.
I have a lot of respect for palliative care.
You fight the good fight for as long as it is reasonable, but when it becomes obvious that the end is in sight and nothing can be done about it, then the focus should switch to making the patient as happy and comfortable as possible for whatever time he/she has left.