Cleaned up socket.