Not really. At least, "felt some pains to ensure" is not idiomatic and doesn't mean much to me. The original means that he was keen to ensure it, and made some considerable effort to try to ensure it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AngliholicTo make sur I get it right, does it mean "he was eager to ensure it ...Yes, I meant "keen" in the sense of "eager" (I actually prefer "keen" here, but maybe I'm splitting hairs). Moreover, and important to the meaning, he went to some trouble to ensure it. He made an effort to ensure it (an effort that apparently failed).