How safe are electric dog fences?

Considering buying a dog and installing an electric fence.Are they safe for the dog to be zapped? Also what if there is a power failure?I have about 1/4 acre for the dog to roam so how much would that cost to install?
11 answers 11