RE: Something to learn by....
Wow, glad you made it out alright. What a great lesson.
I always carry a back-up light in my pack, water, usually a snack (peanut butter crackers), saw, TP, etc. Do not carry a compass or GPS though (even when I hunt the state forest), although I should.
Granted, where I hunt 90% of the time,you can't get lost, you can see lights from barns/houses after dark.