in emulator/pet.py [0:0]
def on_connection_interrupted(connection, error, **kwargs): print("Connection interrupted. error: {}".format(error))