It turns out it was just a daft oversight: the client had terminated prematurely. So now it is working.

Sigmund.