<p>First of all many thanks for the time looking into this! I would however like for you to look deeper into the issue. The current behavior seems wrong in itself, therefore the result is you adding a bandaid fixing something that should not have been there in the first place.</p>

<p>The problem on the table is: we are connecting twice.<br>
The correct question isn't "why aren't we disconnecting",  but rather "why are we connecting twice?!"</p>

<p>The solution would lie in examining the ::Versioned code and determining whether any of the -&gt;connect calls have anything special done to their connect attributes. If this is <em>not</em> the case (i.e. we always connect to the same place <em>anyway</em>) - then clearly you are looking into a shared $dbh as can be seen in the <em>second</em> bullet point here: <a href="https://metacpan.org/pod/DBIx::Class::Storage::DBI#connect_info">https://metacpan.org/pod/DBIx::Class::Storage::DBI#connect_info</a>. I will not be available for most of this week, please ask <a href="https://github.com/frioux" class="user-mention">@frioux</a> for help if you get stuck and/or have trouble navigating my explanation.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/dbsrgits/dbix-class/pull/57#issuecomment-53374573">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDY0NzA0MiwiZGF0YSI6eyJpZCI6NDA1Mzc4OTd9fQ==--f4df9f758dd08e9a87a90f072e94bc9f34a7e09d.gif" width="1" /></p>