You can leave via south, it's not locked - and try to find a teleporter in the SE.

http://beyond.divinedivinity.net/help/act4_test3.htm
here, you're at 1.