}).catch(function(err) {
        debug('%s/%d failed', ctx.name, ctx.iteration);
        emitter.emit('error', { name: ctx.name, run: ctx.run, iteration: ctx.iteration, timestamp: Date.now(), error: err, });
      }).then(function() {