Fix bug: infinite retry in failing ping.