Set exit code of KiCS2 after invoking :save and :quit
It is a common pattern to compile Curry binaries using
kics2 :set <options> :load <module> :save :quit
However, if the compilation fails for some reason, kics2 exits with exit code 0, making it harder to notice the error. This is especially relevant when used in Makefiles. Therefore, it would be good if the exit status shows the success of compilation when :quit is directly called after :save. Another solution would be to add another command, but this would need a lot of adaptations.