I have created a library that I would like to use to report all unhandled exceptions. Rather than put everything in my Main() in a try/catch block, is there a way I can set a function to be called for any unhandled exception?