Fix serious problems with FileTransferTask.