Sockets destructors fix