A few comments on the status strings:
* We shouldn't have a case when something is "finished" but not either "successful" or "failed", so just remove that if statement
* Instead of "successful", I would actually use the word "success", because it's shorter.