making rpc server quit when the server quits