private void tryClose() throws IOException {
    try {
      FileChannel channel = this.channel;
      if (channel != null && channel.isOpen()) {
        channel.close();
      }
    }
    finally {
      channel = null;
    }
  }
private void tryClose()