If the loan in to the LLC then the loan would also go away if the company fails. The difference is primarily the deferred payments in case of non-profitability.
Acquiring a commercial loan to your LLC with reasonable rates without a personal guarantee is extremely difficult. In all likelihood, a small business is going to have to make a personal guarantee to borrow money.