closed = true;
impl = null;
  public synchronized void close ()  throws IOException  {    if (getImpl() != null)      getImpl().close();    if (getChannel() != null)      getChannel().close();        closed = true;  }