Cleaner handling of resetting autoCommit and setTransactionIsolation.