Ok I'm kind of just rambling here,
-make a condition check for aggro
-make a condition for specific character name check (your tank)
-If these two conditions are TRUE, FALSE respectively,
then put Rogue shadowstep in DPS,
followed by Rogue fade,
finally command: //mqp on (or whatever the nomenclature is)
THEN, have your dead tank send a command to your rogue
-check for aggro
-check if character name is there (rogue)
If these are FALSE FALSE, set up a command: //bct (Rogue name) /mqp off
Hopefully by the time your Tank has died, goes through the rez timer, the mobs will have cleared. So, whenever the tank tells the Rogue to /mqp off, they can just return to camp