The court, judge or chancellor shall make such order as the court, judge or chancellor deems necessary for the safekeeping or cancellation and redelivery or appropriation of the securities so deposited.