Workers in Troubled Firms: When are (Should) They be Protected?