* fix: properly close connection on sampler ingestion * fix: dangling connection test * style: ran python linting * fix: revert to 9 (cherry picked from commit cd6434dd73cd7c60ef22a11972740f12686b3558)