[giscanner] Catch CalledProcessError and OSError