Restore autocommit to original value of transaction, instead of defaulting to true