It shall be the duty of every master or commander of a ship or vessel outward-bound from the port of Philadelphia, and he is hereby required, to remain twenty-four hours, after his arrival at the capes, to give to the pilot on board such ship or vessel an opportunity to be taken out; and if the master or commander of such ship or vessel refuse so to do, and if the same can be done without endangering the vessel aforesaid, the master, owner or consignee of such ship or vessel shall forfeit and pay to such pilot, his executors or administrators, any sum not exceeding eight hundred dollars, to be recovered in any court of record in which the same may be sued for, by action of debt or otherwise.
55 P.S. § 176