better log message on uncaught exceptions