It probably waits for the Backend thread to complete, causing "on_exit" (that would actually stop the thread) not to be called.
It probably waits for the Backend thread to complete, causing "on_exit" (that would actually stop the thread) not to be called.