fix race condition when the last server failed to serve