Adjust CalledProcessError exception handling