catch uncaught exceptions in `production` env