def close(self):
    if (self.connection is not None):
        self.connection.close()
        self.connection = None
def close(self):
    if (self.connection is not None):
        self.connection.close()
        self.connection = None