Guess i should just take it as a learning lesson.
Yes if only drivers would do this, a crash or near miss is always worth looking into, asking the question, 'what could I do to prevent that happening again'?
This is worth doing, even if you think/know another driver was at fault.
I would stick my neck out, and suggest, when driving on any road, remember the vehicle in front can stop for any number of reasons, regardless of speed.
The ability to stop, and avoid the vehicle, depends on the grip available, speed, and the amount of distance left between me, and it.
In practice, the gap between yourself, and the vehicle in front should be reviewed at very short intervals, and if conditions change.
Giving a thought to where you can go, if things go wrong is also worth considering but for this it is necessary to know what is going on around you.
It's hard work, this driving lark...