Yep. One word for you: cortisol. It's known as the "stress hormone" and, while I am not sure of the exact biological mechanisms, it is directly linked to weight gain (or slowing weight loss). It's also at least part of the reason that lack of sleep hampers weight loss as well; sleep deprivation causes increased production of cortisol.
And now that you don't have to be perfect, you can be good.