1. Glad you are OK
2. As people have said, it's the little stuff that multiplies to catch you out
3. You were obviously in a bad way - worth us all remembering that you might have been the only resource / best in your group - so the things that could make a difference (shelter, dry clothes, brew kit etc) need to be available and set up to be idiot proof - with hypothermia or whatever you cannot expect to do anything fiddly, that you could do easily in good shape.

"barely able to drink a hot cup of tea two-handed due to shaking. Tried with my buddy to come up with a plan; failed. After a few minutes, feeling like a jerk, I told my buddy to call 911 and that he was in charge because I did not seem to be thinking straight" - this is the point in the wilderness where things go from bad to disaster