Dig deep--analyze yourself, your environment, etc regarding the relapse. How were you feeling? Why were you feeling that way? How did you relapse? Could you introduce any safe guards to help?
I've found when I make poor decisions it's typically when I'm under stress, feeling hopeless about some element of my life, and a weird numbness kind of takes over. Once I started to recognize that, the numbness became a warning sign for me.