Adds connection_threads to keep track of threads