Check socket openness with isopen.

Since `TcpSocket.open` went away a couple week ago.