I had a headtorch failure once, halfway up a dark and windy mountain, I hadn't checked the batteries on my back-up torch, they were dead so I just had to make do for the night. Trying to get my tent even partly erected was so difficult and trying to find a small area of flat earth was just as bad. I always carry spare batteries now. But after all of this, my fault entirely, at sunrise the view was stunning!