code: @Override
    public void close() throws IOException {
      try {
        outputStream.write(SaneRpcCode.SANE_NET_EXIT);
        outputStream.close();
      } finally {
        socket.close();
      }
    }
docs: Closes the connection to the SANE server. This is done immediately by closing the socket.
  
  @throws IOException if an error occurred while closing the connection