Have cameras on the car. Have them record into a 120 second buffer. When the car detects a crash write the buffer to disk with a timestamp.
Unless of course your being accused of a crime that was either caught on film two minutes ago or it involved a car crash.
EDIT: Or was caught on film two minutes prior and involved a car cash.
> I'd prefer not to have all my actions recorded
Fair enough, but it's too late for some countries.
If I were making said cars, I would not sell them without that feature. Otherwise, if something ever happened to the car I would have no decent record of what my software was trying to do in the incident. You would have no way of fixing serious issues, or absolving yourself of fault.
This is the reasoning behind airline black boxes.