emission control causing rough idle?

the EGR will cause idle problems when it doesn't close completely, often do to being dirty, the further it is open at idle the worse it will run, that is why it died when you opened it all the way