Escape your time

A society or country has a unique method of correction. Criminals are imprisoned in a dungeon with two options: Serve their time, or try to escape. Those who manage to escape alive, their crimes are forgiven early.