I think the issue with my "exit refusal" here is that I was exiting on my 2nd passport which does not have the resident visa (as fist passport was off at another embassy). So seems it is ok to leave with a residence visa but if you enter via e-gate you cannot exit with a non-resident visa passport