In the early Church, confession were heard before the congregation, not privately. In fact, the Pope condemned private confessions, until the 5th century.
However, there were only three sins that actually had to be confessed before the congregation, and one of them was rejection of the faith, in the face of torture and death. During the first 3 hundreds years of Christianity, as Christians were persecuted, many rejected the faith, rather than face torture and death.
So, even if you should come to a situation where you must profess your faith or die, remember, you can always be reconciled.
Which reminds me. St. Joan of Arc, failed when she was first threatened with torture. After she had a dream where Christ spoke to her, and told her not to fear torture and death, she went on to become a martyr.
Jim