You've got to make it a good example for those kids regardless of how much you mess up.
I often think you bring unhappiness on yourself, because if you don't like yourself very much, you allow yourself to be influenced by people who reinforce that.