Terminate worker on `uncaughtException` and `unhandledRejection` with code 1 and restart worker from master thread