The small amount of plasma is confined using magnetic forces.
If they lose containment, the pressure and temperature on the plasma reduce significantly and the reaction no longer takes place. There is no runaway scenario AFAIK.
I have been down the hall from a tokamak when it is firing. I have also walked next to a tokamak when it is off. I have crawled through stellarator rings. These things are not scary, they are impressive.