Fixes #40: Retry requests in case of failure.