1. Use the footbrake, not the handbrake2. Depress the clutch3. Look for a route to the side of the road, and steer there carefully4. Only switch the engine off if the clutch cannot be used instead5. If footbrake has failed, you can use very gentle handbrake
It-s worth reading the full story in BBC News Magazine (link above).