Should Your Corporation File Bankruptcy?

When does it make sense to file a Chapter 7 or Chapter 11 case for a corporation, LLC, or partnership?