private void Cleanup()
        {
            if (_isDisposed)
            {
                return;
            }
            _isDisposed = true;
            if (UnderlyingStream == null)
            {
                return;
            }
            UnderlyingStream.Close();

            if (UnderlyingStream is FileStream fs)
            {
                File.Delete(fs.Name);
            }

            UnderlyingStream = null;
        }