$ALGO goals and how to exit properly