add close method for logging_handler