I think it depends on the driver too. And your configuration. You don't mention your interface but my guess this is a driver issue, not Sonar. Sonar has never crashed for me for lack of an interface.
I have 2 interfaces a Tascam us1641 and a Scarlett 6i6 and 2 computers I'm using.
My main DAW has no on board sound drivers installed. So if my Focusrite interface is off (which is rare) Sonar does not crash, it just gives me that warning that there is no audio device. Actually if I open WMP or Wave Lab I will also get a similar message but no crash. There's just no sound. In the case of Sonar I simply turn on my interface and Sonar will ask if I want to use it, I do not need to re start Sonar. Some apps do need a re start.
All audio even uTube plays though the Scarlett. The computer has no other choice.
On my Laptop there is the on board audio. I use the Tascam for live recordings to Sonar. I can leave the Tascam behind when traveling and open Sonar without issue. There are no warnings at all. I just have to switch to MME mode to hear sound and carry on with some editing. Sonar shows the Tascam in/outs but they are grayed out. The on Board driver is automatically selected by Sonar without my intervention. But Sonar needs to be told to swicth modes.
I do notice that even with the Tascam connected, all other apps will use the on board sound card for playback.
At gigs I'm recording to Sonar in WDM mode and on breaks I play back tunes on Win Amp via the on board output.
Sonar stays open and ready to record.
So the computer does have a choice and seems most apps like to use the on board codex by default,,, but if there are no on board audio drivers they seem happy to somehow work with the ASIO drivers of your interface.