Okay - I'm chiming in as having the same (or similar) problem as AdamGrossmanLG. I've also had the problem, on and off, for years - thought I'd fixed it a couple of times but it comes back :-(. It used to occur more often when starting Sonar but it has progressed to frequently occurring during record and playback.
The problem is when I stop playback or record of a track in a project containing a MIDI track(s), my system freezes (but I can still play a soft synth with the MIDI controller! - just no response to keyboard or mouse). It used to happen occasionally but now with 2017.07 it occurs VERY frequently. Sonar (still) also nearly always hangs at the splash screen. My workaround for both these issues has been to unplug and replug my USB MIDI controller - that frees up everything and I can proceed once the MIDI device is recognized again by Sonar.
After reading this thread, I did find that USB suspend was enabled but disabling it had no effect. I also followed Craig's procedure for disabling audio devices. I had no duplicates but VIA High Definition Audio was active (which I did not expect) - I removed that as I recall it had been a problem in the past. I imagine it got reinstalled with my new Dell Monitor software but not sure.
If anyone has more ideas how to diagnose or correct this issue, I'm all ears! It can no longer be ignored since it has become such a huge pita for me. I may temporarily revert to an earlier release but I prefer to move forward instead of backward.