Now have thread termination logic that doesn't crash the whole system when I return to the main thread. That was annoying.