Bankruptcy is the best time to buy companies. The loans will be rewritten, so you can buy the company's assets _WITHOUT_ taking on any of its liabilities. The Twitter name, trademark, and other assets (maybe source code, servers, data-centers, etc. etc.) all will be up for sale. You can likely buy the "bits of Twitter" you care most about, and leave the other bits for others.
I have severe doubts that anyone will want to buy Twitter when it has so much debt under its name. Might as well wait for it to collapse first.