code: public void close() throws IOException {
          if (sslHelper.isSocketAvailable()) {
              try {
                  if (in != null)
                      in.close();
                  if (out != null)
                      out.close();
              } finally {
                  sslHelper.closeSocket();
              }
          }
      }
docs: Closes the socket.
  
  @throws IOException