If you can call a kix script in access, can't you just catch a return value and/or a error value returned by the script in stead of writing it to a file?
I presume that the KiX script can return an error value on exit that could be catched by your Access Database?