Does SONAR hang if all you do is open and close it without loading a project? How about if you open it in Safe Mode? Is it specific projects? Can you create a new project, record a little audio and then close SONAR OK?
When SONAR unloads, it cannot help but release the driver. If the driver is unavailable to other applications, it means SONAR has not unloaded, and Task Manager will likely reveal that it is still running even though there is no visible component. Often referred to as a "zombie process", it can
usually be killed via Task Manager.
So why doesn't SONAR unload? Because it's hung waiting for something to happen that isn't happening. That something is typically hardware, a hardware driver, or a software dependency of a driver. Anything that runs in kernel mode is a black box to the calling application, which has no way to find out what's going on in there. All it can do is make a request and wait. And wait.
It needn't necessarily be an
audio driver; any hardware component can be at fault: video, disk, USB/Firewire ports, RAM stick, network adapter, audio interface, any of the hundreds of circuits on the motherboard, internal or external cables, even a power supply.
Although hardware failure is statistically probable, it needn't
necessarily be a hardware fault. Poorly written software can certainly cause similar symptoms, especially if it's a low-level function such as a driver or interrupt handler. But if you've made no software changes since before this problem began, hardware would be the more likely suspect. Disk drives and the audio interface would top the list.
If you can reliably duplicate the symptoms, take it to a knowledgeable technician (e.g. not the Geek Squad), who might just find a loose RAM stick or SATA cable and have you back up and running the same day.