Welcome to Embrace Shabbat.
In his sefer Yaarot Dvash (Volume 1, Essay 319), Rav Yonatan Eybuschutz quotes the well-known concept that gehenom turns off on Shabbat. One of the reasons why we smell besamim- fragrances- on Motzai Shabbat is because our soul is sensitive to the stench that comes from the rekindling of the furnaces of gehenom. To offset that negative stench, we smell besamim.
The Yearot Devash explains that there are other gehenoms, aside from the gehenom of fire. There is also the cold gehenom sheleg, the gehenom of snow. The Vilna Gaon teaches that gehenom is created from a person’s actions. If a person ignites the fires of desire and anger in this world, they create a similarly heated gehenom in the Next World. However, if a person does mitzvot, but is cold and lazy in his performance, his lack of fiery passion creates a gehenom of snow in the Next World.
Those who don’t keep Shabbat in this world switch from the fires of gehenom to the gehenom of snow on Shabbat in the Next World. Observance of Shabbat protects a person from both forms of gehenom because of the aspects of shamor and zachur. Zachur refers to all of the positive aspects of Shabbat, whereas shamor refers to all of the actions we refrain from on Shabbat. Because of these two components, Shabbat has the power to protect a person from both gehenoms and purify them. Even if a person sins with Avodah Zara, the worst possible sin, Shabbat forgives, atones, and purifies.

