In the version I learned as a kid, the song never ended, because:
And the little one said, "I'm lonely, I'm lonely"
So they all rolled over and one jumped in
There were 2 in the bed and the little one said "I'm lonely, I'm lonely"
So they all rolled over ...