close s3 client in generate-presigned-url

This is to avoid the client to timeout. Wrapping most operations in a macro that does this would be a better solution