             config.onError and config.onError.call result, error, fileData
           else
             result.state.set 'completed'
-          worker.terminate() if worker
           return
 
         if config.onBeforeUpload and _.isFunction config.onBeforeUpload

          result.estimateSpeed.set (config.chunkSize / (_t / 1000))
          progress = Math.round((sentChunks / fileLength) * 100)
          result.progress.set progress
          config.onProgress and config.onProgress.call result, progress
          return
        , 250

        sendViaDDP = (evt) -> Meteor.defer ->
          console.timeEnd('loadFile') if self.debug
          opts =
            eof:        false
            meta:       config.meta
            file:       fileData
            fileId:     fileId
            binData:    evt.data.bin

          unless EOFsent
            EOFsent = true
            opts =
              eof:        true
              meta:       config.meta
              file:       fileData
              fileId:     fileId
              fileLength: fileLength
            Meteor.call self.methodNames.MeteorFileWrite, opts, end
          return
