added test of thread local cleanup after pool close.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop