neo4j/community — pull request #480 by radford (2012-05-01 05:42:39+00:00)
Title: Quit the shell on EOF (i.e. ^D) as per convention rather than parsing null

Not only is the usual interactive behavior, but it prevents an infinite loop when getting to the end of a script file.