adds node process error handlers