code: @Override
    public void close() throws IOException {
      if (encodingWriter != null) {
        encodingWriter.close();
      }
  
      pgOutput.close();
      pgInput.close();
      connection.close();
    }
docs: Closes the connection.
  
  @throws IOException if an I/O Error occurs