Game locks up when headphones disconnected

DirectX build on MonoGame 3.6. Disconnecting headphones locks up the game. OpenGL version of the game does not have this issue.

I’m assuming this is related to losing the audio device, but I get no errors or exceptions thrown, so I am not sure where to begin handling this. If I trigger it while debugging, Visual Studio stays in debug mode with a status of “Running,” but the Game1 Update() and Draw() methods are no longer called. I have to quit debugging to get the game window to close. Any help is appreciated!

Well, I managed to solve this. I had the “Enable Just My Code” debugging option turned on. Turning that off completely resolved the issue when both debugging and running the executable.