Part of effective pre-flight planning involves the inadvertent IMC plan--what to do if one accidentally punches into the clouds. For multi-aircraft operations in particular, the flight crews know to turn away from one another and climb to safe altitudes, with each aircraft in the formation climbing to a different altitude to avoid colliding with one another. During the preflight briefing, all pilots know what altitude to climb to, so that, in the event of an emergency, the actions are instinctive.
Note that the pilot of this Bonanza simply takes the lazy route and looks at his GPS to keep him away from a mountain ridge, failing to climb to the published minimum safe altitude. He almost dies as a result.
Don't let GPS make you lazy--remember your pre-flight planning from flight school. It might save your life.