Switch back to 'close' event of child process.
Back to testing random strings instead of 'xxxx..'