fix tcp closing for ssled connections