[Core] Restored ReleaseOnFinalizer functionality (pull request #192).