The car behind you should be leaving enough distance to account for their reaction time in an emergency, and while you are driving normally you should be assessing the situation behind you and making sure you're not being tail-gated.
If you are being tail-gated, there's not much you can do about it. You speed up; they speed up. You slow down; they honk and go around and then the car behind them tail-gates you.
One of my biggest worries about my commute (when I drive instead of taking the train, typically once a week) is that there is no way to keep enough space in front of me that I can react to full braking. If I leave that much space between me and the car in front of me, another car will move into the "open" spot. Automatic braking might well help considerably.
Perhaps the most exciting thing about self driving cars is that they will all have and use the ability to think ahead more than 5 feet.
Next time anybody gets too close, flip the light. Watch the idiot increase the distance between you rather fast.
On a similar note, in the UK, where most people have manual gearboxes, the advice for an emergency stop used to be to jump on the clutch and the brake, to prevent stalling. Nowadays you're taught just to stamp on the brake: in an emergency, who cares if you stall? Pushing the clutch can lead to the car "surging" if going downhill, so why risk it?
And here that's not the case: a grandpa in a class S killed 5 workers on a french highway some time ago. Cars full of gadgets assisting people who should never have been driving or who shouldn't be driving anymore are only going to give these a false sense of security.
Also : when you brake you always must take into account what's going behind you, not just what's in front. Sometimes it's better to hit the car in front of you to give a little more room to the semi coming behind that is otherwise going to ruin your Class S and your life. How does a car applying stronger braking when you didn't brake enough to its taste deals with that?
Just as user 'bambax' wrote: a fully automated car with no driver would be great (but we probably won't have it widely deployed before a few decades) but a car trying to 'tell me how to drive' is not that great of an idea.
With all these gizmos starting to widely appear in cars I'm pretty sure that soon the Wikipedia list of computer bugs that ruined human lives is going to get way longer...