Removed finalizer worker thread race on shutdown.