Glad you escaped - it could have been much worse! Given the positions, I'd say you reacted well.
The only thing I would throw out there for discussion is something I'm doing lately - that's sticking to the outside tire track in blind corners, especially on twisty pavement. I've had a few pucker moments here in the SoCal mountains where I've been in the left track enjoying the corner and either a wide vehicle or someone pushing the line is suddenly in my face

. The outside is, I guess, the slower line, but gives you some cushion from oncoming trouble.