public synchronized void close(){
  if (socket != null) {
    try {
      if (out != null) {
        out.flush();
      }
      if (socket != null) {
        socket.close();
      }
    }
 catch (    IOException e) {
      DbException.traceThrowable(e);
    }
 finally {
      socket=null;
    }
  }
}

public synchronized void close ( ) { if ( socket != null ) { try { if ( out != null ) { out . flush ( ) ; } if ( socket != null ) { socket . close ( ) ; } } catch ( IOException e ) { DbException . traceThrowable ( e ) ; } finally { socket = null ; } } }
close the transfer object and the socket .
