Are you sure you want to emit a success / failure event instead of using the builtin AgentLog that will get created if an error occurs?  I could see that what you have now might be useful if you want another Agent to watch the success of this one, but it's not how Huginn Agents are typically implemented.  Do you need another Agent to watch this one?