**Describe the bug** When closing the app, it throws an exception and tries to open VS to debug it. I only reproduced it with the debug attached. **To Reproduce** Steps to reproduce the behavior: 1. launch app 2. exit the app with the close button **Expected behavior** The app should just close **Screenshots** 