Upon receiving a bond or deposit as aforesaid, it shall be the duty of the clerk to issue a writ of restitution, directing the person who seized the water-craft to deliver the same to the person from whose possession the same was taken and seized; and the said water-craft shall thenceforth be discharged from all the liens secured by such bond or deposit, unless the court or judge thereof, upon motion as aforesaid, shall order the same again into custody by special writ, on account of the insolvency of the surety or sureties.
MCL 570.418