He must have seen Jesus, holding out his hand!
Yeah I've been present when someone was on their deathbed, totally incoherent, then all of a sudden wakes up and dies. It is rather disturbing.
But science says it is some chemicals released in your system.