DRY
    val controller = if (selfIndex == 0) tc.startController(initialParticipants, myself, controllerAddr)
                             else tc.startClient(myself, controllerAddr)
    Await.result(controller, timeout)