When the locomotive of a special train carrying the ashes of the former Prime Minister Rajiv Gandhi failed, the Railways had a contingency plan that worked flawlessly to keep the wheels rolling.