Let's not forget that Jiraiya could have run away to fight another day -- accomplishing most of the goals Abdula was "correcting" me about -- but decided to sacrifice himself to get Pein's secret, which he wrote on Pa's back.

I never said Jiraiya's mission was worthless. But his sacrifice was, because the intentions he stated turned out to be irrelevant in Naruto's fight against Pein.

http://www.onemanga.com/Naruto/381/10/
http://www.onemanga.com/Naruto/381/11/