No, the 10% is gone money either way. It is the fee collected by the bonding company in return for guaranteeing the full amount.
There must be a provision for paying the State directly, if paid in full.