This second attempt was successful , and James escaped to France . He lived there in exile until his death .
A second attempt at flight , on 23 December , was successful ; William deliberately allowed James to escape to France where he lived in exile until his death .