delete socket after the request