Revise test for closed IO objects during http retry