()is entitled to enter into,with a shipper,any agreement,stipulation,condition,reservation or exception as to the responsibility and liability of the carrier or the ship for the loss of or damage to,or in connection with,the custody and care and handling of the goods prior to the loading on,and subsequent to the discharge from,the ship on which the goods are carried by sea.