Write latest uncaught exception to disk