Catch exceptions when make RestClient requests