[PLAT-5354] Flush all cached failures when connection state changes