finish multithread work