I've been an ITU nurse. I would never say that by I detached. Ever. But compartmentalisation is essential, because our patients need us to perform at our best for them, right to the end, whether that is by trying to save their lives, or by giving them the best and most dignified death possible, or sometimes both simultaneously, and we do that at the same time as liaising with a confused, distressed and conflicted family, who can't bear to see their relative suffer, but feel an acute sense of betrayal if they 'give up on them'.
So, we must develop a relationship of trust and confidence, compassion and care, preserving hope but communicating the reality of a desperately grave situation, so that when the time comes that no more can be done, relatives, and often patients, are in a position that they are ready to hear it, and can accept the news that no one wants to give, and no one wants to receive. There is great reward in knowing that you did the best that could be done at the end of someone's natural life.
Now, I don't work clinically, so although I'm still in the area, I am not tied to any one patient. I always try to make sure that I stop to talk to relatives waiting in the corridor, or entering/leaving the unit. It makes a difference.