Put it straight after the mishap in the edit, following Cartoon Slip for a trip or Anime Punch for a hit, so the reaction closes the gag before the next scene starts.