See SERVER-19776 for an example.
These wrappers were added because runProgram, etc. wouldn't wait for the child process's output to be written to the program output buffer, but that was fixed by SERVER-22992.
wait_for_pid() function in shell_utils_launcher.cpp doesn't wait for program output to finish being consumed
Stop mongod before log ingestion in startup_logging.js