fixed #22 closing output streams twice deletes s3 files