Security is refunded when the creditor obtains a settlement or judgment (or arbitral award) in their favour. See Security.