It is an easy thing to "run"; the difficulty is to know when to stop. There is always the possibility of being "pooped," which simply means being overtaken by a mountain of water and crushed into the depths out of harm's way for good and all. [Ralph Stock, "The Cruise of the Dream Ship," 1921]
A new manufactory of a nectar, between soda-water and ginger-beer, and called pop, because 'pop goes the cork' when it is drawn. [Southey, letter, 1812]
Sense of "ice cream on a stick" is from 1923 (see popsicle). Meaning "the (brief) time of a 'pop'" is from 1530s. Pop goes the weasel, a country dance, was popular 1850s in school yards, with organ grinders, at court balls, etc.