First off: DIE.
Then as a ghost, queue up for a random heroic.
Accept when the queue pops, but you won't be automatically ported in because you're a ghost.
If you leave group without ENTERING but AFTER ACCEPTING dungeon pop, you're fine.
You'll be able to see what dungeon you're in as well as if your group is terribad (hp/mana).
/profit