There do seem to be a lot of cases of a last surge of energy and lucidity just prior to the final sleep.
someone should do a study on that