Interesting thread.
From what little I know of US bankrupcy law, who gets paid what and when in the event of a bankrupcy largely comes down to seniority of debt.
The IRS being the first cap off the rank, preferred debts next in queue, and obligations to clients somewhat down the list...