What is going on in the mind of a dying person?