Remove socket.shutdown() calls that were commented out.