Refactoring / hacking so this works for sending alerts for failed executions also #20