I know this shouldn't be a required thing - bear with me.
Have you tried checking the box to tell Sonar to Share Drivers With Other Programs?
It is in Edit>Preferences>Audio>Playback and Recording.
Just a thought, maybe it wouldn't hang. I had not had it checked, and also would have to kill SOnar through reboot or through Task Manager, but there was one tune I was working on, where I was using another program to play back a track at a slowed speed, and I went in and checked that box so that I could run both audio programs at the same time, and ever since then, I have not had Sonar hang like it used to.
Just give it a shot and let me know if that had a positive effect on things or not,
Bob Bone