protected function writeFailedActions($fileName, $actions)
    {
        $fileName = $this->basePath . '/' . $fileName;
        $this->filesystem->remove($fileName);
        if (!empty($actions)) $this->encode($fileName, $actions);
    }