How to survive a market crash