fix possible race condition where spawning a daemon thread and then closing the current (only) handle makes the backend see the new thread as non-daemon and not terminate
fix possible race condition where spawning a daemon thread and then closing the current (only) handle makes the backend see the new thread as non-daemon and not terminate

PRIArobotics/HedgehogClient