code: def DropConnection(self, connection):
      
      try:
        connection.cursor.close()
      except MySQLdb.Error:
        pass
  
      try:
        connection.dbh.close()
      except MySQLdb.Error:
        pass
docs: Attempt to cleanly drop the connection.