destroy a stream if possible