Which BEST describes the phrase "taking the cure" as used in the sentence?

Because of this and many other hardships, many landowners were unable to fulfill their five-year contract and were forced to declare bankruptcy, also known as "taking the cure."
A
Homesteaders hoped declaring bankruptcy would preserve their livestock.

B
Homesteaders hoped that declaring bankruptcy would cure sick cattle or farming problems.

C
Homesteaders hoped declaring bankruptcy would allow them to pursue other financial interests.

D
Homesteaders hoped declaring bankruptcy would heal their finances and allow them to start over.