Issue #2501 missed finalize callback was added.