Clean up additional dangling references by removing the ability for sockets to get stuck in thread local variables