(3)When a ship so proceeding to sea takes to sea, when on board thereof in the execution of his duty any person authorised under this Act to detain or survey the ship, the owner, master or agent of such ship shall each be liable to pay all expenses of, and incidental to, such person being so taken to sea and shall also be guilty of an offence under this sub-section.