Congratulations! Some boss mechanics are tough to deal with, but creating distance is a hunter's greatest strength. If I remember Quagmirran correctly, I would go maximum distance while my pet tanked. When it died, I just immediately revived it, feigned death to reset aggro back to pet, then ran...