fix flaky test TestErrorHandler
fix flaky test TestErrorHandler

Before this change, this test would fail after about 50 runs. After
this change, I was able to run it 200 times without failure.

soheilhy/cmux,ekle/cmux