neo4j/neo4j — pull request #3295 by lutovich (2014-10-15 16:24:00+00:00)
Title: [2.0] TxManager used to commit/rollback transactions

Previously, if transaction was closed during database shutdown and TxManager was already turned off, call to close() failed trying to obtain current transaction and TxManager.rollback was not called. This left not released locks. Other threads were waiting for those locks and did not give database a chance to shutdown.
With this PR TxManager is used directly to close the transaction, so locks are released in finally block.