Added Uncaught exception handler to MainActivity