Fix threading issue with running multiple copies of TubeSock