graceful stop rpc server