They won't stop working - this is precisely why Germany has been continuously increasing its fossil gas import capabilities.
German politicians *do* realize the country can't run on renewables alone, *and* because the vocal minority wants nuclear shut down, the country *must* run on fossil fuels. This is literally what Merkel said in 2019 (see below).