Added retries on exception when initialising document store