Ensured retcodes are passed back and handled correctly