EXITRUN should be special, where only functions wrapped in if(is(EXITRUN)){...} get executed. There, problem solved.