242. If any ship for which a Passenger Ship Safety Certificate is required by this Chapter leaves or attempts to leave any port without a Certificate, the Collector of Custom and Surveyor may, at any reasonable time, go on board a ship, and detain her until she obtains a Certificate.