It almost sank the whole deal.
The whole deal was almost ruined.