Improve envelope status handling on process cancel
Created originally on Bitbucket by cdevienne (Christophe de Vienne)
When a process is canceled, all the unfinished envelopes should have their state set to "error" to avoid unaware actors to send more fragments.