improve nodejs driver for shared data and child process exit

implementing message handshaking between child and parent process.