Bug 1109889 - Share more exception handling code. r=nbp, a=abillings