I would say that the example is wrong as well.

But that brings me another question..

What happened with the auto-reconnect feature in the driver that is enabled by default. !?

Maybe DAW never realized their issue in this sample as their auto-reconnected worked ? Or they never tried to do anything else using regular API calls, in their isolated sample ?

Have you turned off auto-reconnect settings ?
How long did you wait ? seconds, minutes, several minutes before killing the app ?

Also, Why no error was raised.. ? You should have received an error, if the auto-reconnect did not work, instead of just hanging over there.

As you see, lot's of questions for DAW to answer..