Logging uncaught errors
Fix error reporting and logging on Android in production mode