Support streams that don't have a close method.