Mains or battery unit ?
Fence units of old produced some horrible EMI and today with much higher power the circuitry is pretty complex, not just to meet modern standards but just for longevity.
Dropping some 40-100 uF @ 325 425V into a transformer every second for 10 KV output is no ordinary application where many failsafes and silicon protection devices need work properly for long service life.
Generally fences get weak after decades as even the pulse grade caps don't last forever.