See #103837 (comment) and #103837 (comment):
EAA:
I still think we should consider changing the underlying API so we can emit a resource warning if close failed.
VS:
IMO sqlite3 should be modified to emit a ResourceWarning.
Currently, no ResourceWarning is emitted when a connection is not closed explicitly:
Linked PRs