fix set fault when k=15
now output ret code if subprograms exit abnormally