Is there a way to prevent the ASIO driver from showing a messagebox

In my application when the soundcard set in the preferences is not working for some reason (maybe it is not yet plugged, for example), the application tries continuously to open it, every 2 seconds. That way, when the user finally plugs his card, it works without needing further interaction, so it is convenient and works well , except when it does not work well… which for example if the asio driver decides to display a messagebox each time it fails to open the soundcard. For example my ECHO asio driver is showing a nice cascade of modal messageboxes that render the application completely unresponsible.

So I wonder if anyone knows if there is a way to tell the asio driver to be silent ? Or maybe some way to detect that it is actually displaying a new window (without dismissing the previous one) on each error ?