aglsetup: exit with error if fragment script fails