log uncaught exceptions like error logs