disposing of the stream reader was killing the input stream for subsequent reads