If you're in a situation that causes you to go deeper into guilt or bring on feelings of guilt, you don't have to stay where you are, you can do something about it. Let's look at Tip #3 on Using Prevention to Overcoming Psychological Effects of Guilt.
Tip #3 - Physically move from the event
Certain situations, activities or company may arouse memory of a past event which in turn brings on the feelings of guilt. Physically remove yourself so you can refocus your mind onto something more positive. No point staying where you are and succumb to guilt. It will continue to consume you and take you further downhill. Find something positive to shift your attention to and bring your emotions on a higher energy vibration.
Let's look at a practical example.
Say you are trying to overcome a smoking habit. You find yourself in the company of other people that are smoking, what do you do? Do you stay and try to be strong? No, this is the time that you walk away so you're not overcome by the desire of wanting to smoke and refocus your mind to reaching your goal.
At this point you're still vulnerable and you need to protect what you've already accomplished - whether it's a day, a week or a month that you've not had a cigarette - so you don't fall back into the habit and find yourself in a situation of feeling guilty for giving in.