That’s the circumstance that Chapter 11 is designed to avoid, viz., a temporary cash flow shortage causing the loss of a valuable business. Chapter 11 preserves it, but frequently, only with a change of ownership. Sometimes not.
I have been in energy cases where the gas curves showed shareholders to be in the money one month, then way out of the money a couple months later, then back in the money a few months after that. Liquidity allows one to ride out those kinds of fluctuation, but bankruptcy does as well, but not for very long. The real question is whether there is demand for the business. If not, and if current shareholders are competent managers doing the right thing and pursuing the right business plan, sometimes lenders will agree to allow current shareholders to “buy back” their interests over time. That is, sometimes the bank doesn’t want to own the collateral, so if they can’t sell it to a third party for a decent price, they’ll let you continue to run the show and buy back your equity over time.