In the final analysis the questions of why bad things happen to good people transmutes itself into some very different questions no longer asking why something happened but asking how we will respond what we intend to do now that it happened.
Once you accept your own death all of a sudden you're free to live. You no longer care about your reputation. You no longer care except so far as your life can be used tactically to promote a cause you believe in.