Made changes so that multiple connections could

be kept track of, and be eliminated when the

object using that connection goes out of scope.