Hundreds of thousands of people have fled their homes, and are now trapped between the violence and a closed border.