That's probably exactly why. Some of my latest nights have been attempting to prepare a long-running overnight task for an agent.
It was productive, but as you say, it's dangerous to gamble with sleep.