'Disconnects the client.
@return True if disconnected, False otherwise'

def disconnect(self):

    client = self.client
    if (client and client.isConnected()):
        client.eDisconnect()
        return (not client.isConnected())
    return False
