fix exit() code for OK status