When a relationship breaks down, an array of emotions and counterproductive thoughts drive some people to do things they later regret.