code: def print_and_exit(results):
      
      for success, value in results:
          if success:
              print value.encode(locale.getpreferredencoding())
          else:
              value.printTraceback()
docs: Print each result and stop the reactor.