And how to tell if it can be saved.