Added code to catch GATK errors