Bankruptcy is a restructuring, not a declaration that the company is going out of business. Many degrees of bankruptcy and this is the first step.