What to do when things go bad.