Issue #26: Added retries to supress connection refused error