A person depositing funds, stocks, or securities with the court clerk pursuant to court order is discharged from all further liability to the extent of the deposit.