The robustness of stability under link and node failures