Fix address generation for program tags.
Report encapsulation failures to to upper layers.