A train rattled from the track, producing black smoke and trumpets.