The master of a South African ship shall not discharge a seafarer who has signed the agreement with the crew from the ship, except before a proper officer, where the seafarer does not consent to his discharge, and in accordance with the provisions of this Act.