Why not separate the driver compartment from the battery packs using a fireproof wall? Or surround the batteries in a fireproof "box" with a vent? Or add a gas based fire damping system like data centres use?
Battery bursting into flames, destroying the whole car and putting the driver and passengers at risk just seems so archaic.