Well no -- that wasn't bad luck at all. He simply was way too close for the speed.
Back in the day when I got my driver's license we were told to have 3 seconds of distance. One second to react one second to brake and one second for safety, if I remember correctly.