more robust logic for returning retcod when ignored & failure