O'Reilly logo
  • Shinji Abe thinks this is interesting:

While global exception handlers are useful for preventing crashes, they should not be used to recover from errors. When not properly handled, an exception leaves your application in an indeterminate state. Attempting to move on from such a state can bring additional errors. If your program does include a global exception handler, use it only to gracefully terminate the program.

From

Cover of Pro Node.js for Developers

Note

process.on("uncaughtException" のグローバル例外ハンドラーを使うのはきれいにプログラムを終了するためだけにしよう。