Trap exceptions when freeing a PDOStatement.
Initialize Gdn_Database->ReconnectTries to 2.
Free the slave database when calling Gdn_Database->CloseConnection().
Change the database connection retry check to an if statement.