http://code.kx.com/wiki/JB:QforMortals2/execution_control#Protected_Evaluation
q)@[h;“exit 0”;{}]
It just worked! Thanks a lot Charles.