Market-level and firm-level implications of financial distress