The Promise with Lugia! - S5-E13
Continuity mistake: When Cassidy, Butch, and Dr. Namba are looking at the parent Lugia before Dr. Namba steps forward, Cassidy and Butch and Dr. Namba are one metre away from each other, but in the next shot, they are 0.3 metres away. Also, there is a blue control panel with nine keys, but in the next shot, it is a yellow control panel with eighteen keys. (00:02:03)
Answer: Yes it ran away because Layla hurt its feelings.