protected function initTask($taskName, array $taskConfig)
    {
        if (false === isset($taskConfig['script'])) {
            $taskConfig['script'] = $this->defaultScript;
        }
        try {
            $task = new Task($taskName, $taskConfig);
            $this->tasks[$taskName] = $task;
        } catch (\Exception $e) {
            $this->getLogger()->error(sprintf('Could not instantiate task "%s"', $taskName));
        }
    }