Add error handling for NetworkStream::connect