Issue #2501 missed finalize callback was added.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop