fixed exit code now given back to command line with exit(n) (bug 1224481)