Ensure that the TransferManager is shutdown.

This ensures that the TransferManager is closed after a file is
uploaded. This prevents a JVM hang related to non-daemon threads
spawned by the TransferManager (namely 's3-transfer-manager-worker'
threads).