corrected exit value when no error