A few choices:
First, modern computers don't use much power and hard drives spin down and SSD drives don't matter.. so the best practice is to set a DAW to NEVER for all power settings.
All sorts of weirdness happens when Computers go to sleep with USB ports. If the Port is Yellow it won't go to sleep. Those are charging ports. More common on laptops than desktops
Secondly if you insist on letting it go to sleep, then just close and reopen Sonar, that only takes a few ( 30?) seconds on my system.