(1)If an Indian ship is transferred or disposed of while she is at or on a voyage to any port outside India, every seaman or apprentice belonging to that ship shall be discharged at that port, unless he consents in writing in the presence of the Indian consular officer to complete the voyage in the ship if continued.