Merge pull request #3211 from BrzVlad/fix-finalizer-thread-exited