When a court case is resolved, the bail money held by the court is typically returned to the person who paid it. If the surety has passed away, their legal heirs can apply to the court for the refund of the cash surety. This usually involves submitting a formal application through a lawyer.