Handle some classes of stream errors within the stream