They were shut down because they weren't that reliant on it to begin with (the level to which electricity from nuclear power mattered to Germany is routinely exaggerated), because they were horrendously expensive to maintain and fix (nuclear power is always $$$$$$$$$) and because of Fukushima.
Most countries that are build their own nuclear power plants or nuclear power plants in other countries (e.g. Sweden, France, America, Russia) either have expensive nuclear arsenals which they want a nuclear industrial base to help maintain or have a boogeyman that makes them want to be able to ditch the NPT and build a nuke in a hurry. For Sweden that's Russia, for Iran that's America, for Japan that's China.
Poland has just recently gotten interested in building nuclear power stations, after having zero interest for a long time. You can probably guess which boogey man was responsible for that.