adding some debug logging, handle tcp close wait event