South Africa offers a lesson on how not to shut down a coal plant