xclient/xserver should call uv_shutdown and then uv_close in shutdown_cb? https://github.com/libuv/libuv/blob/v1.x/test/test-shutdown-twice.c