log uncaught exceptions and device changes