fixed exit code for case construct