(TTA) Improve retcodes when simulating (useful for ic-server)