John went to his aunt's for the summer holidays. After his stay there was over, he took a train home. When the train arrived at the station, he got off and ran towards his parents to greet them. Bob was also at the station at that time and witnessed all of this. Later, Bob told Sarah about what he had seen:
Before the train had stopped, John jumped out of it and ran towards his parents, who were waiting for him at the station.
Can the above sentence be used in this context? Does it mean that John literally jumped out of the train before it stopped, or is it a figure of speech meaning that right after the train stopped, he got off immediately and ran towards his parents? If it's the latter, I suppose the bolded "had" is essential to that meaning and cannot be omitted. What do you think on this one? Thank you.