Catch raises

Prior to this commit we did not catch raises. FYI @adamcrews you have
the same error in your code
[here](https://github.com/jenkins-infra/jenkins-infra/blob/staging/dist/profile/templates/r10k_deployhook.erb#L58)