Bankruptcy is not a crime, it is a solution. You are doing all the right things and you will absolutely have a chance to come out the other side of it in a better position than you were before. You are sober too, think of how much more difficult it would be if you were drinking.