def METHOD_NAME (pilot, state):
    """ this callback is invoked on all pilot state changes """
    print("[Callback]: Pilot '%s' state: %s." % (pilot.uid, state))
    if state == rp.FAILED:
        sys.exit (1)