This will invariably affect my sleep with either no sleep at all for 1-2 hours or dreams of fixing an issue over and over again resulting in me being less rested the next day.
I'd love for there to be a quick way to 'snap' out of programming mode but after over a decade of programming I haven't really found one (except for having a couple of pints...).