Catch an uncaught exception.