A bit more logging and exit on uncaughtException