Remove use of exceptions for control flow in Node and Relationship scan operations