Implemented retries on server.ping/query_server