Make LogExtractor AutoCloseable
Close LogExtractor in test
Support patterns in cypher `has(...)`

And add documentation for the `has(...)` function.