Probably worth mentioning that this is not some kind of barely percetible flash of light that is emitted as an organism expires.
... What it actually is, is a variety of different metabolic processes emit extremely weak photons as part of the various chemical reactions involved in keeping a living thing alive... and so when that thing is dead, those metabolic processes cease.