if last step of action failed, set status of action to failed