Made sure Transport.Read returns an error if the stream fails.