First will clear out presence shareholders and debt during insolvency by selling assets and then he clears his bills. Check out realisation accounting on google. If it is a private company, after asset stripping, they will pay the bills and next the director or partners.