move task corruption cleanup back to server to solve #803. This might
pose a problem for #769, but it seems that websockets / nginx version
was the real culprit there.