Improve the uncaught exception handler to work with supervisor streams