Nobody goes to jail, same as now unless you can prove negligence or intent, there might be significant fines and/or settlement money depending on the jurisdiction. But I’m not sure how is this difference than deaths caused by some design flaw in normal cars.
If the car drives over a child in self-driving mode, will insurance company go to jail instead of you?