If someone made an oath "I'm not going to eat bread for thirty days" and wants to "cancel" it, he goes to three people and tells them "I didn't know that it would be so hard". They say "OK, it's retroactively permitted".
What happens if he didn't go to those judges, violates the oath, is about to get the punishment, then goes to three people and says "I never would have taken the oath if I would have known that I was going to break it and get punished".
They say "Mutar Lach".
Does he still get punished?