Revert "dnf: Call dnf.Base.close() before exit to cleanup. (#41810)"
Revert "dnf: Call dnf.Base.close() before exit to cleanup. (#41810)"

This reverts commit 32436ea9a529841c1f8196dcd28e752c1888f5aa.

thaim/ansible,thaim/ansible