'Attempt to cleanly drop the connection.'

def DropConnection(self, connection):

    try:
        connection.cursor.close()
    except MySQLdb.Error:
        pass
    try:
        connection.dbh.close()
    except MySQLdb.Error:
        pass
