add retry to avoid session timeout exception.