Close uploading streams in all cases. 

...ening files" when there is an S3 issue blocking the uploading and Priam just keeps the filedescriptor around.