function awaitExit(exitingProcess) {
	return new Promise(resolve => exitingProcess.once("exit", resolve));
}
Returns a Promise for when a child process exits
@param {ChildProcess} exitingProcess The child process
@returns {Promise<number>} A Promise that fulfills with the exit code when the child process exits