code: function checkIfTasksRunning(vCon, tasks, handleError, env) {
      var tasksRunning = tasks.filter(function (t) {
        return (t.status === STATUS.RUNNING || t.status === STATUS.READY);
      });
      if (!tasksRunning.length) {
        var remainingTasks = tasks.filter(function (t) { return (!t.status); });
        var remainingTNames = remainingTasks.map(function (t) { return t.name; });
        var errMsg = sprintf(NO_TASKS_RUNNING_WONT_COMPLETE, remainingTNames.join(', '));
        var emptyTask = { env: env };
        handleError(emptyTask, new Error(errMsg));
      }
    }
docs: this will be called if there are no tasks found to run,
  and it will check if there are still tasks running or ready
  (which means they will be running shortly), in which
  case everything is fine. If no tasks are running then
  call handleError since this will never complete.