A probabilistic approach to mixed open-loop and closed-loop control, with application to extreme autonomous driving