HM: LogCollector must not fail in writeLog in finally. A possible original error must still be thrown