Fix error checks for offline transfer and remove unneeded debug output
Add typo in remove all. Ensure tmpDir is removed
Merge pull request #2753 from crosbymichael/update-err-for-offline-transfer

Fix error checks for offline transfer and remove unneeded debug output