If all the monsters are killed it is not the end of the encounter until all downed people are healed or stabilized.
Is there a reference for that? I've heard that said tons of times, but I've thus far been unable to find a specific rule saying that this happens.