i have KK. raise 6x BB to take out a full table of limpers. I get one caller

Flop: Q45. All different suits

I check. He raises all in. Average stack is about 10k and I have about 60k. He's chip leader and has me covered.

I put him on AQ, AA, or QQ. Figured I might as well pay him off if he has AA or QQ.

I call. He flips over Q9 offsuit.

Turn: 9.

Now after about 3 hours of concentrated playing, I lose to crap like this. Insanely bad preflop call, bad post-flop move, and he ends up pairing his kicker. What was I suppose to do?

Currently, I think the best thing for me is to stay away from the game to avoid steaming. How do you guys recover from these sick bad beats? And what kind of rationalizing/reasoning do you tell yourself whenever you get a bad beat?