finish all of the thread