I just walk away when a project starts to go wrong. I've learned that once I start making mistakes it's time to turn my attentions to something else. I find myself making changes in the middle of the night when I go for a bathroom break on something that is driving me nuts. :-(