exec exit code check