Exit code is working like a charm