We can catch uncaught exceptions thrown in the application at its process level. We attach a listener to the process global object to catch such events.
process