closing already closed socket deleted