It is a defence to a charge of an offence against this Part if it is proved
that the contravention or noncompliance with the Part was justified in the
circumstances in order to avoid immediate danger having regard to all the
dangers of navigation and collision and to any special circumstances,
including the limitations of the vessels involved.