Gallows humour can be a coping mechanism for dealing with death.

Bob