public final function setFail(\Throwable $fail): void
    {
        if ($this->failOption) {
            if ($this->failOption == 'log') {
                $logger = clone $this->service->getApp()->getLogger();
                $logger->setDirectory($this->failLogDirectory);
                $logger->logFail($fail);
            } elseif ($this->failOption == 'throw') {
                throw $fail;
            }
        }
        $this->fail = $fail;
    }