You need to do the "right thing."
Only
you can determine what that "right thing" is - we can't give you answers.
From what you're saying, though, it sounds like you already found it.
Just keep moving forward.
Your children learn by example.
You are showing them how to be strong, and do the right thing.
That's a much better example that what he's showing.