Be very kind and sympathetic, tell them how short life is, and how sad you feel for them being stuck in a dead end job with no future, and in the end nothing to look back upon. Then say. I will think of you whenever I see someone sad and unhappy, or I am sad and unhappy, to remember it could always be worse.