fix race between server-sent and client-sent cancellation