Fix temp file never being deleted when creating InputStream object

This solves CLDCONNECT-796 by deleting the created temp file immediately after it's created in S3.