Gracefully handle unstable network conditions.

Change-Id: I371d69cdd92d166301f94fefa222c25c824d3c9c