Alert on closed socket