check if connectedThread interrupted then close socket