public function end($taskName)
    {
        if (!isset($this->_tasks[$taskName])) {
            throw new Exception("Undefined task name: `'{$taskName}`.");
        }
        $task = $this->_tasks[$taskName];
        $task->end();
        return $task;
    }