If any ship, vessel, goods or effects shall be stranded or cast on shore and no person appears to claim the goods which shall be so saved, the local magistrate shall take them into his custody or possession and, as soon as may be, give notice and a schedule in writing of the different articles to the county treasurer, keeping a copy thereof, and deliver safely all such goods and effects to such treasurer or his order who shall be responsible for them and who shall give public notice thereof in a newspaper of general circulation in the county for at least sixty days, if no claim should be made.