The batch file if run alone in DOS windows exits properly. Not sure why KiX is not releasing it.