Recreate stream on 'error' and/or 'end'