Only catch RestClient exceptions

This should resolve the issue where underlying system exceptions
were being suppressed accidentally.