Catch errors on synchronous requests.