Finish processes on failure
Closes #1595 (closed)
This fixes both Process.finished
and the new process completion email feature, since both are triggered by the same code.
I could write a data migration to update Process.finished
for processes that should have been finished but were not. It doesn't affect anything in Arkindex, it just looks strange because any failed process will be marked as running for 1 century in the process list.