It can be hard to be thankful for something until you realize how easy it is to lose it. A bad job doesn't seem quite so bad when compared to no job at all. Though, few things compare to a near death experience.
Hope you stay well and stay nice, the_Monk. (You're all too rare)