The sqlit3.Connection object doesn't call its close() method when it's used as a context manager.
Initial patch by Johannes Vogel.