I do that either subcontiously or.. I get really stressed out and then plan for it to happen. I mean, getting stressed and then dropping everything and saying, screw this... I am going jogging or... whatever.
Or you just take up a routine that you know is healthy for you.