[JENKINS-19990] Catch specific Exceptions.