Consult not your fears but your hopes and your dreams. Think not about your frustrations but about your unfulfilled potential. Concern yourself not with what you tried and failed in but with what it is still possible for you to do.
But I remember the moment when my father died. I wasn't a very committed Catholic beforehand but when that happened it suddenly all felt so obvious: I now believe religion is our attempt to find an explanation for us to feel more protected.