It seems like you got a good lesson from the fall and you took positive action because of it to prevent further falls. It that case the fall is actually considered a positive aspect of your recovery efforts.
If you view your lapse as a mistake and as a product of external triggers, rather than as a personal failure, research shows that you will have a much better chance of return to abstinence quickly. Your lapse becomes a tool to move forward and to strengthen your motivation to change, your identification of triggers and urge-controlling techniques, your rational coping skills, and the lifestyle changes needed to lead a more balanced life.
Does this mean that a person should view these lapses as a good thing? Of course not! Clearly, if one wants to abstain, lapses are not preferred. But by recognizing that mistakes can happen and learning how to quickly right oneself, long-term abstinence can be achieved. Lapses may occur, but relapse is not inevitable.
Now what...?The Be’er Mayim Chayim says that in the army, when they would want to test a great soldier to see if he's fit to be a general, they would put him on a wild horse that was impossible not be thrown off of. Although no one could stay on that horse, the test was only to see how fast he would get back up after he was brutally thrown down and wounded.
Instead of getting down on ourselves after a fall, let us reflect back on how many times we did manage to say “no” to the Yetzer Hara before he won us over now! Let’s recall the many tens - if not hundreds - of times during the past clean-streak that we didn’t give in to him! We definitely have the upper hand in this war. He is determined to make us feel down so that we should continue to slip. But let us focus on the overall picture. Even though we may have lost a battle now, we are still winning the war. Let’s rejoice about our successes and get right back up for the next round, where B’Ezras Hashem, we will do even better!