There is a teleporter that will take you out of the ruins, to several different destinations.
It's even labelled on your automap as the "Teleport Room" if you haven't found it.