When an escrow agent becomes insolvent, the risk of loss is on the party who would be entitled to the money if the escrow were terminated at that time.
Recommendations
Select established institutional escrow agents. Avoid having your own agent hold funds. Maintain minimal earnest money deposits.