Uploading via SFTP asyncronously seems to cause problems with large files.
Fixing race conditions where the ssh connection is closed before all files have been transfered using sftp.
Merge pull request #12 from johngeorgewright/race-conditions

Race conditions