I do two things.
1. I check the inteligence of the monsters. If they have low inteligence (below 5) they may not think of retreating. If they are weak but inteligent they will flee once their numbers are equal to the pcs. unless they have a reason not to. If they are strong and smart they will...