while he was on his way to begin his mission to portugal and spain the engines failed on the paddle steamer that was transporting him from london to lisbon just as the vessel was rounding the dangerous galician shore and the passengers were only saved from the rocks by a dramatic last minute variation in the direction of the wind .