By prayer. It happened a couple times, although not yet on the city scale.
I don't personally know anyone who was affected. What they did, according to the local press, was stuffing every crack and cranny with old rags and sleeping fully clothed (as in fur coats and the like) and under as many blankets as they could get their hands on.
It's standard advice to keep blankets or the like in your car for this specific scenario. Besides, for the majority of people in the Nordic contries, their normal winter comforter is warm enough to keep them warm should the heating fail.
Those people were ready, when you live your whole life in such environments you quickly get "infused" with a lot of experience that was accumulated over generations.
So I'd be more worried about people in a regular country getting severe low temp weather than a failing heating system in one region used to extreme cold.