Potential fixes to avoid startup races: - Wait for "juggler listening" message. - Make sure `transport.onclose` is called when connecting to the transport after the actual pipe closure.