toScanFailure

Try to convert to a ScanFailure. Return null in the cases it's not possible