Description
When a session is killed it tries to rollback transactions prior to ending the session. If there is a long-run script (or perhaps a queue of jobs) then this close job just gets added to the queue. If that rollback job never executes then the transaction gets orphaned.
Graph implementations tend to have their own methods for cleaning up these lingering transactions, but it would be better if the shutdown could occur in an orderly fashion.