Throughout the past century or so as more and more automation has been possible – which has then been misused by vandals and “jokers”, with sometimes more and sometimes less malicious ends in mind – there have also been well-meant suggestions (such as yours) to offset or prevent that.
For example, and this is a device you can easily find on the internet from time to time, to prevent false alarms for fire and police when streetside call boxes were first introduced, there was an actual idea to add an “automatic handcuff” device that would temporarily entrap the caller. So, for example, when you pull the handle to set off a fire alarm, a device is triggered to handcuff you to the call box until the fire department arrives to put out the fire (if there is one) or the police arrive to arrest you for pulling the false alarm.
Sounds great. Who’s going to pull an “actual” fire alarm after that, knowing that they’re at the mercy of not only the fire – assuming there is one – but every passing hoodlum, mugger or drunk who wants to bother you (or rob, or worse) while you’re incapacitated for doing a good deed!
Now, it may be that when trucks are automated – and have no human drivers at all – that some of these problems (with trucks being used as murder weapons, anyway) – can be stopped. But we would also lose something, I think. That is, we would lose the ability for a truck driver to drive into a flooding river, for a hypothetical example, if it were determined on the spot that sacrificing the truck in this highly unexpected and unusual way, might save one or more lives. No automatic truck navigation system would permit such a thing; it’s not in the programming.
As @zenvelo notes, when you decide to program automaticity then you need to be more and more careful – and imaginative! – about how the thing will play out over a lifetime of use.