Before any warehoused goods subject to excise duties, or goods entitled to drawback or repayment of customs-duties on exportations or goods exportable only under particular rules or restrictions, are permitted to be exported, the owner shall, if required so to do, give security by bond in such sum not exceeding twice the duty leviable on such go...