rejectTask(task, reason) {
        this.ongoingTasksQueue.remove(task);
        task.reject(reason);
    }
Removes the task from active tasks list and then rejects it.

@param {Task} task
@param {Error} reason
@private