Invaders can always escape, but the weaker they are, the easier to capture. Try to lower their stats a bit before trying again.
The only required precondition is having enough Jail slots available.
Off the wall question, but is there a way to prevent them from escaping the dungeon before confrontation? Or a way to capture them before they reach a character?
you can damage them until 0 then capture them and they cant escape