refactor: abort/continue/undo scripts