The filing marks the end of a tumultuous year full of layoffs, executive departures, and piling debts.