I don't know what it is about exercising, but whenever I get my butt to the gym or I take a long walk, I get back on the wagon. Something about the physical realization of getting back on track is enough to make me feel focused again. So go out and exercise!
You can do it!!