Preserve transaction handling while closing cron and web-source SQLite connections deterministically, including failures during PRAGMA setup. Add regression coverage for polling, exceptions, and commit/rollback.