Join remaining non-daemon threads before exiting NVDA (#16934)
Fixes #16933
Summary of the issue:
If any non-daemon threads remain when NvDA restarts, the new NVDA instance can be very unstable, including freezing and lack of functionality.
Description of user facing changes
NVDA is no longer unstable after restarting NvDA during a Braille Bluetooth scan.
Description of development approach
Before releasing the mutex in nvda.pyw, log and join all remaining non-daemon threads.