they thought the plague was a curse from god...
they never contained a thing, because they had no concept of microbiology or what bacteria is and how it spreads.
it died out likely because remaining people were strong enough to not catch it, or just chance.