private function runClosureTask()
    {

        if ($this->before !== null) {
            $this->resolveBeforeCallbacks();
        }

        call_user_func($this->command);

        if ($this->after !== null) {
            $this->resolveAfterCallbacks();
        }
    }