with ref to the electric fence, i have heard of a billy goat dying cos he got his horns caught in it and by the time owner found him, he'd died cos of too many shocks to his heart. iv also heard a similar story of a horse caught up in a electric fence and dying, apparently they can only survive 20 mins if the current is still going through them.
but its also a freak accident. very sad and a bit shocking for you.
glad you have a new piggy companion.