diff --git a/core/lib/Drupal/Core/Database/Connection.php b/core/lib/Drupal/Core/Database/Connection.php
index daf4668..a403404 100644
--- a/core/lib/Drupal/Core/Database/Connection.php
+++ b/core/lib/Drupal/Core/Database/Connection.php
@@ -94,6 +94,13 @@
    *
    * @var \PDO
    */
+  private $pdoConnection;
+
+  /**
+   * A reference to the actual PDO connection.
+   *
+   * @var \PDO
+   */
   protected $connection;
 
   /**
@@ -174,7 +181,8 @@ public function __construct(\PDO $connection, array $connection_options) {
       $connection->setAttribute(\PDO::ATTR_STATEMENT_CLASS, array($this->statementClass, array($this)));
     }
 
-    $this->connection = $connection;
+    $this->pdoConnection = $connection;
+    $this->connection = &$this->pdoConnection;
     $this->connectionOptions = $connection_options;
   }
 
@@ -198,11 +206,14 @@ public static function open(array &$connection_options = array()) { }
    * object may cause the number of maximum allowed connections to be exceeded.
    */
   public function destroy() {
-    // Destroy all references to this connection by setting them to NULL.
+
+    // Destroy the reference to this connection.
+    unset($this->connection);
+
     // The Statement class attribute only accepts a new value that presents a
     // proper callable, so we reset it to PDOStatement.
     if (!empty($this->statementClass)) {
-      $this->connection->setAttribute(\PDO::ATTR_STATEMENT_CLASS, array('PDOStatement', array()));
+      $this->pdoConnection->setAttribute(\PDO::ATTR_STATEMENT_CLASS, array('PDOStatement', array()));
     }
     $this->schema = NULL;
   }
