Add error handling to exchange rate request.