Restores child process exit behavior.

The Node.js `ChildProcess.exec` callback gets called after the
child process exits. This change moves the "on exit" code inside the
callback and removes the polling behavior. Seems to be working on the
Lexitron.