It works based upon the 100% certainty that whatever you are, at some point you will cease to be.
On average, regardless of what you are, you are in the middle of your life or existence (some very high variance here).
In order to generalise it to non-certain events, such as a program crash, you'd need to remove the certainty assumption and rejig the consequent statistics - it might be doable, but you wouldn't end up with something quite so clean and simple.