I don't know if this is a bug or how it's supposed to work.
When Fleeing and going back to the Commons, then returning to the dungeon via the red button, when exiting the dungeon normally thereafter, it sends me back to the place that I fled from (i.e. the Commons) instead of outside of the dungeon where I originally entered.
I know that things were changed when the TeamUp portal was added, but it would seem that leaving a dungeon without using the TeamUp portal should send the wizard back to the entrance to the dungeon.