then came the emperor 's defeat at waterloo and his second imprisonment on the island of st. helena off the coast of africa and the idea of an escape from that horrid and desolate place seemed an impossibility .