[neo4j] fix connection handling