fix and do nothing if unable to write log exception