finish multithread server
close connect_fd before a thread terminates