Also, for anyone interested in intensive work sessions in general, I highly recommend reading Deep Work, by Cal Newport. He talks a lot about how to do really intensive work while remaining a fully functional and engaged human being outside the work.
One thing he recommends in the book is to have a shutdown ritual. He actually says out loud "I am shutting down now", to help kick his brain out of deep work mode.