Rename clean_thread_list() to destroy_finished_threads() and some cleanup