Use `failed_result.join()` here instead of a wait loop.