Cancel processes in the right order.
Cancel processes in the right order.

This is likely not right yet, but at least it won't deadlock.


Former-commit-id: 8011ef84606532c38fbdd56bd395d2f3fd9fefef
eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt