In scheduler API, Event.failure.status contains the exit status for an executor. On Posix, status corresponds to termination information in the stat_loc area returned from a waitpid call. On Windows, status is obtained via calling the GetExitCodeProcess() function. For messages coming from Posix agents, schedulers need to apply WEXITSTATUS family macros or equivalent transformations to obtain exit codes.
We should consider consolidating Posix and Windows behavior.