Rescue errors in jenkins facter script.