Buying put options are a great way to protect yourself against downturn risk. I think of it like an insurance policy. You pay a premium to protect yourself in bad times.
However, I'd recommend always having a put contract outstanding, not just when you predict things getting worse. You got lucky this time, but next time you may be too late.