Lab2 multithread server + socket closing