add retry logic to KeyLister. make maxRetries configurable.