Wait for ct-server to exit.