Several weeks ago we received a call from a concerned mother - her daughter was out on the Lost Coast Trail, solo, and was somewhere on the beach apparently trapped from the cliffs and the ocean. The hiker had a satellite phone with her that she was using to make frantic calls to her mother. Thankfully, she eventually made it out of the impassible zone and to the safety of Randall Creek area. By this time it was well after sundown and she was wet and cold from the ocean. She had already made the wise decision to remove her wet clothing and get into her sleeping bag. To further help prevent hypothermia, I advised her to eat any available food she had and to heat water for a warm drink; she could also fill her water bottle with the hot water and keep it in her sleeping bag with her.
Have a backup plan.
What if you get to a creek and it's too high to cross?
What if everything in your pack gets wet?
Plan for the worst case scenario and do the necessary preparation to avoid getting yourself in those situations to begin with.