[Perf local_lat]Don't close the socket immediately

Closing the socket to fast may lead to data to be not send.