No, it wasn't economically competitive with wind, solar and gas generation, and the characteristics of its technology weren't of sufficient value to be monetized enough to keep it running or refurbish it.
Nothing to do with safety.
It's a rare situation where a refurbishment for a local purpose might actually make sense. Of course, it's early days and while the owner, Constellation Energy, is claiming it's a fixed budget and wouldn't necessarily even take the low-interest, failure-insulated load the federal government is suggesting, it's likely to still have public money in it and go over budget.
Nuclear's problems aren't safety, they are that it's too expensive, is difficult to build on time and on budget and isn't compatible with anything remotely like a free market economy.