if (impl != null) impl.close ();
if (isClosed()) return;
  public void close () throws IOException  {    if (impl != null)      impl.close ();    if (ch != null)      ch.close ();        closed = true;  }