I don't know personally, but presumably companies designing these guns have thought of the same concerns and made the rings to be durable and sizable.
Re battery dying - if I was designing a smart gun, I would have it default to a regular, usable-by-anyone gun if the power dies. That way you don't have to worry about mastermind criminals with EMP devices either.