By the time Datavyu is closing LOGGER is already destroyed, so trying to log an event stops closing. Fixed.