add trace while socket closed