exit code is what you get when you invoke "echo $?" on Unix or "
echo %ERRORLEVEL%" on Windows.
If you see 999, then, BAO adapter has not been able to get hold of exit code due to circumstances it could not control at that point in time.
I suggest looking up corresponding OS specific documentation.