Loan default can NOT be treated a CRD. Loan offset CAN be treated as a CRD. If the participant is a qualified individual and the loan offset is treated as a CRD, 10% penalty is waived and the amount is eligible for 3 year income inclusion.
Simple example
$20,000 total balance (10k loan, 10k cash)
Plan terminates and the loan is offset
The $10,000 offset is not subject to the 10%, and can be taxed over 3 years and repaid over 3 years (1099 code 1M I think, also reported on Form 8915-E as a CRD)
$10,000 can be rolled to an IRA (1099 code G)