add close? option to transfer, and to-output-stream