Bankroll management is the key. If you always bet only 0.5%-3% of your bankroll, you can basically never go completely broke, as long as you're playing poker professionally. Losing is part of the game. If you're just playing for fun, bankroll management doesn't really matter. But if you're serious about it, you'll move down a level whenever you lose too much.