How would i stop code execution until the process has exited? since its not a promise i cant just do `await`. is there a way and how?