It's amazing that you mention this as this was a similar method that I used to quit smoking. When I had the craving to smoke a cigarette, I took off for a sprint (I was younger with an outdoor job at the time!). It both interrupted the pattern, and associated the behavior with the pain of sprinting.