DNET-582

Random bug in finalizing DbCommands