A bar pilot who has brought a vessel into port is entitled to his or her fees before the vessel’s departure from port, to be paid in advance, or security given for the payment and, on failure thereof, may refuse to carry the vessel out.