Added appropriate unix exit codes