You are in control right now. You're in the driver's seat. It is entirely up to you if you want to improve for the sake if your child and your wife, or wallow in despair, and we -all- know what leads down the latter road.
I hope you don't give up. You're stronger than you think.