Closes the stream_reader object and the underlying stream, and releases any system resources associated with the reader.
Reimplemented from xtd::io::text_reader.