When I feel like I am going on TILT, I just get up and walk away for a few hands. Just to gather my marbles and clear my head out. If I still feel like crap, I cash out whatever I have and call it a day.
Also, I never play a ring game after a bad tourney beat. Did that once and cost me $4000.

Never again!