reference attributes index when checking for attribute membership
handle cases where the "finish" state switch logic is entered and there is a known error - clean the state and return