R module for handling backoff on retries