You know you're going to get burned from time to time. It's just part of the game. So when it happens you have to pick yourself up, dust yourself off and forget about it because they're about to snap the ball again.
We need empathy to give empathy. When we sense ourselves being defensive or unable to empathize, we need to (a) stop, breathe, give ourselves empathy, (b) scream nonviolently, or (c) take time out.