web: Tell the channel when a restjson request is cancelled.

Fixes #372.