fixed unnecessary socket closed logging bug