The rpc unit tests need real synchronization. There is a workaround in place to flush the server output, but it only waits for a 5 sec timeout. The server probably should log the client disconnects, and the test suite should check for those disconnect logs.