Added null checks to event callbacks
Added success/failure to task and goal completion callbacks