i have this all the time happen to me as well during projects. very frustrating indeed.
i can only associate it with the usage of plugins, some of the built in ones, and UAD ones.
i too agree that this is likely my midisport drivers, even though they are recent and i keep my computer up to date and clean.
in X1, the power off doesnt allow Sonar X1 to close like it used to.
SOMETIMES in 8.5.2 Sonar would eventually quit (after a power cycle of the MIDISPORT) but not so recently.
only solution is to reboot.