code: function _pull(jid) {
      if(debugMode)
          console.log("Pulling " + jid);
      var jRef = jobsArray[jid];
      //console.dir(jobsArray[jid]);
  
      if(jRef.obj.stderr()) {
          var stderrString = null;
          jRef.obj.stderr().on('data', function (datum) {
              stderrString = stderrString ? stderrString + datum.toString() : datum.toString();
          })
          .on('end', function () {
              if(!stderrString) { _storeAndEmit(jid); return; }
  
              console.log("Job " + jid + " delivered a non empty stderr stream \"" + stderrString + "\"");
              jRef.obj.ERR_jokers--;
              if (jRef.obj.ERR_jokers > 0){
                  console.log("Resubmitting this job " + jRef.obj.ERR_jokers + " try left");
                  jRef.obj.resubmit();
                  jRef.nCycle = 0;
              } else {
                  console.log("This job will be set in error state");
                  _storeAndEmit(jid, 'error');
              }
          });
      } else {
      // At this point we store and unreference the job and emit as completed
          _storeAndEmit(jid);
      }
  }
docs: /*
  handling job termination.
  Eventualluy resubmit job if error found