code: public OWLConnection replaceConnection() throws OntopConnectionException {
          OWLConnection oldconn = this.owlConnection;
          owlConnection = reasoner.getConnection();
          return oldconn;
      }
docs: Replaces the owl connection with a new one
  Called when the user cancels a query. Easier to get a new connection, than waiting for the cancel
  @return The old connection: The caller must close this connection