wait for server to die in teardown