Closes the current stream and releases any resources associated with the current stream.
public override void Close()
A call to Close is required if stream is opened with StreamMode.Read or StreamMode.Write to release locks.
Stream is already locked.
Lock acquired by current stream has become invalid.
Stream is not found in the cache.