Enable auto-commit to prevent dangling transaction.