Ensuring stream is opened using wrapper.