Once you believe you will no longer receive (any or all) amounts owed by your customers, you can write them off as a bad debt. When using Xero's invoicing system, you can follow these instructions.
By writing off (part of) your non-paying customers balances, you're won't be paying tax on income you won't receive.