Cleanup the threadChan thread