Houses have water tank that work as buffer for when the water stop, couldn't residential batteries work the same way?, it could detect drops in voltage and stop charging, so even if the grid is unstable in a black out, the residential isn't going to light up immediately, or only the houses without batteries