First off, I'm really really sorry for your stressful situation and I hope whoever was ill is getting better.
I give you a lot of credit for recognizing that the stress (and the sleepless nights) are so connected to going off with food a little bit. Honestly, when I first started this I really just thought I loved food too much. But each time something has come up that has caused me to want to "eat" my stress/use food as a coping mechanism, I've really come to realize that I SO do that, it's like my go-to. I think it's been vital to have that realization. Now when those things happen that make me want to comfort myself with food, I am immediately recognizing what's going on -- which I think is the main factor in being able to reign it in.
You did awesome.