Defensive close of the handed over content stream