I did the math, and it looks like the spirits aren't boosting when the game is closed. I got suspicious when after logging in my CPS jumped.
I also tested it by using a spirits configuration that roughly doubles my CPS without spirits in one browser and no spirits in another browser with everything else basically the same. I saved in both games and closed them. I came back to them and the amount of cookies I got while the game was closed was quite close.