the fact that you have said he died in it means you don't know WTF you're talking about. let explain something that the manga stated in 2011 or 2012.
the six path of pain:
are 6 dead bodies being controlled by nagato's chakra that is being transmitted to the black rods which are chakra receivers, and allowing him to control them as if they were his own body using his chakra.
so can pain can get killed when he is already a dead body? you don't know. jiraiya didn't kill pain because the 6 bodies are all dead bodies so he didn't kill them.
nagato didn't break the genjutsu because he wanted to make jiraiya let his guard down.
as i and the manga stated:
sharingan/MS/EMS can break any form of genjutsu. rinnegan is the next evolution of sharingan/MS/EMS as stated in the manga:
You must be registered for see links
.
'what awaits when you progress beyond the sharingan....... is the rinnegan'' in the next page:
You must be registered for see links
.
manga proves me right that rinnegan is immune to genjutsu.