I have had a seriously shattering number of hospice folk die  ( I used to volunteer)  with all their mental faculties completely intact.  When your body is going to die, but perhaps your mind is not yet ready, call hospice!!!!