add exception on logging close #83