Added error handling if cannot connect to rate server.