closed socket connections after use