Chevron bags major North Sea oil contract despite safety software crashes