From a report at the link below:
Death is more like the slow shutdown of a computer than the flipping off of a light switch, says a scientist, explaining a new study that shows genes in the body remain alive for about two days after the heart stops.
In the study of mice and zebrafish, University of Washington researchers found that gene activity generally decreased after death, as would be expected, per New Scientist. But 548 zebrafish genes and 515 mouse genes showed peak levels of messenger RNA—which genes use to communicate with cells—up to 48 hours after death in what researchers termed the "twilight of death." In other words, "not all cells are 'dead' when an organism dies," study author Peter Noble tells Seeker. He believes the same thing occurs in humans, too.
Since humans are far different than zebrafish maybe it is like flipping off a light switch when we die?