You are NOT a "failure." You just aren't "there" yet. There's no reason for you to conclude "so much for that" as if you've just blown your one and only opportunity.
Invitations to happy sobriety don't expire until we do.
Have you thought about hitting an AA meeting? It's worked out great for me, and for many others.