stream: destroy parent stream and free structure in buffered stream destruction