close InStream after the block is accessed