Better handling of Uncaught Exceptions