public void closeSocket(){
  if (mSocket != null) {
    try {
      mSocket.close();
    }
 catch (    IOException e) {
    }
  }
}

public void closeSocket ( ) { if ( mSocket != null ) { try { mSocket . close ( ) ; } catch ( IOException e ) { } } }
close socket streams and msocket object .
