title: Aborting queries on neo4jrb
body: <p>I am running something along the lines of the following:</p>
  
  <pre><code>results = queries.map do |query|
    begin
      Neo4j::Session.query(query)
    rescue Faraday::TimeoutError
      nil
    end
  end
  </code></pre>
  
  <p>After a few iterations I get an unrescued <code>Faraday::TimeoutError: too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout)</code> and Neo4j needs switching off and on again. </p>
  
  <p>I believe this is because the queries themselves aren't aborted - i.e. the connection times out but Neo4j carries on trying to run my query. I actually want to time them out, so simply increasing the timeout window won't help me.</p>
  
  <p>I've had a scout around and it looks like I can find my queries and abort them via the Neo4j API, which will be my next move.</p>
  
  <p>Am I right in my diagnosis? If so, is there a recommended way of managing queries (and aborting them) from neo4jrb?</p>