(a) Duties of Consular Officer.—When a vessel of the United States is stranded on a coast of a foreign country, the consular officer in that country shall take proper measures, to the extent the laws of that country allow, to—
(b) Delivery to Owner.—
After deducting the expenses, the consular officer shall deliver the property, with an inventory, to the owner of the property.