(d)all duties leviable on any stores consumed in such conveyance, and all charges and penalties due in respect of such conveyance or from the person-in-charge thereof have been paid or the payment secured by such guarantee or deposit of such amount as the proper officer may direct;