Socket : Close the connection right after no longer used