attempting to shut down all the threads
merge