Taking charge to eliminate battery failures