Railways had a contingency plan by deploying a spare engine to escort the ashes of Rajiv Gandhi