Unless time runs out, the race ends when the Prey successfully arrive at the finish line or if the Mantracker or the Sidekick captures them.
The competition ends unless a deadline is met, at which point it wraps up when the Prey crosses the finish line or gets caught by the Mantracker or Sidekick.