void stopNow(){
  this.stop=true;
  try {
    socket.close();
  }
 catch (  IOException e) {
  }
}

void stopNow ( ) { this . stop = true ; try { socket . close ( ) ; } catch ( IOException e ) { } }
close the connection now .
