I can't imagine he actually went back to his cabin. My guess is he changed his mind, but can't go back because he knows Virginia will use him for her ends. He's probably watching and waiting like Morgan.
To the best of our knowledge, this is John Dorie's first mental break in the entire apocalypse. The guy needs to let it all out.