Propagate exit code from slave back to master.
Reduce windows + linux differences.