Closed
Description
We currently dispose the ShellStream when the underlying channel is closed.
This can lead to a NullReferenceException in, for example, ShellStream.Expect(TimeSpan timeout, params ExpectAction[] expectActions)
.
In case of ReadLine(TimeSpan timeout)
, we should return null when the channel has been closed.