add failing test for destroyStream()
call stream.end() when destroying