Add some fault tolerance to the distributed compiler client.

It doesn't actually try to recover, but at least it won't sit there
waiting forever if the compiler server goes down.