def METHOD_NAME(self):
    from multiprocessing import Process
    #  Add "baz" service in a different process and let the
    #   process exit to cause a disconnect.
    #   then, ensure "baz" service was removed.
    #
    def add_service_and_disconnect():
        h = flux.Flux()
        try:
            h.service_register("baz").get()
        except Exception():
            sys.exit(-1)
        sys.exit(0)
    p = Process(target=add_service_and_disconnect)
    p.start()
    p.join()
    self.assertEqual(p.exitcode, 0)
    #  Ensure no "baz" service remains
    fut = self.f.rpc("baz.echo")
    with self.assertRaises(EnvironmentError) as e:
        fut.get()
    self.assertEqual(e.exception.errno, errno.ENOSYS)