Multithread

add delete threads to free heap.