Register for UnhandledException event

For #2, when an unhandled exception is encountered, the exception is
sent to the parent and the child process terminated.