Wait for child processes to exit during agent specs