-Added error checking and cleanup to data_set#manualUpload.

#567