protected function cleanFailedTranscode(Adapter $adapter, $outputFilePath, $failMode)
    {
        if (file_exists($outputFilePath)) {
            if ($failMode === self::ONFAIL_DELETE) {
                @unlink($outputFilePath);
                $this->dispatcher->dispatch(TranscodeEvents::FILE_REMOVED, new FileEvent($outputFilePath));
            }
        }

        $adapter->cleanFailedTranscode($outputFilePath);
    }