Escaping after the Astaroth battle in MapleStory is straightforward once you know what to look for.
When you defeat Astaroth, a dark portal appears where you can exit. Simply step into that portal and it'll take you out of the area, letting you continue on with your adventure.