I had two options: take precautions using some of my cobble or die and possibly lose all gold, iron and redstone I found. And iron is kinda important for me since that's usually my go-to material for tools, weapons and (if I have enough of it) armour.