Index: wp-db.php
===================================================================
--- wp-db.php	(revision 10123)
+++ wp-db.php	(working copy)
@@ -356,6 +356,8 @@
 	 * @return bool Always true
 	 */
 	function __destruct() {
+	    if ( is_resource($this->dbh) )
+	       @mysql_close($this->dbh);
 		return true;
 	}
 
