Controlling tilt is just one of the things that comes with experience. After you play a good deal, you learn that bad beats are part of the game. There is nothing you can do about it. You just have to come to the realization that you can't win every pot and even your best starting hands lose sometimes. Once you can accept that fact, you will be able to bounce back from the occasional bad beat and continue to play your game.