Add retry to online check