Add some simplistic retry logic