This drove me nuts for months.
I start my Windows 7 music PC to do some updates or transfer some files.
I turn on my Scarlett 18i20.
I start Sonar, insert a soft synth, turn on record, and play for about three minutes. Everything is fine until I stop and do something like rewind or turn off record, especially if I do those things immediately after recording. Then Windows freezes and stops accepting input from keyboard or mouse. The only thing I can do is hit the restart button on the box. Event Viewer shows nothing relevant.
Hint: This happens fairly consistently, but only once a day.
Solution:
If I turn on the Scarlett before the PC, the freeze doesn't happen. I don't remember reading in the Scarlett manual that I had to do this.
Mitch I.