Short term measures like taking deep breath and skipping few hands after bad beat can help but long term solution is to find and fix the reasons causing tilt. This is not easy task but jared tendler's book "mental game of poker" helped me to improve this aspect of my game.