neo4j/python-embedded — Issue #4: Add shutdown hook to correctly close DB
Author: jakewins
Created: 2011-11-04 11:13:26+00:00
State: open

Something like this:

```python
def _close_db():
try:
neo4jdb.shutdown()
except NameError:
print 'Could not shutdown Neo4j database. Is it open in \
another process?'

import atexit
atexit.register(_close_db)
```