Well, two things. One, pretty sure the push to shut down Germany’s nuclear plants was a response to a single issue, Fukushima.
Two, one simple answer to this particular situation is to assess your energy independence before sanctioning the country you rely on for natural gas. Germany is getting raked over the coals with the same talking points precisely because they walked into a situation they weren’t well-equipped to handle.