Sounds like something in your build modifies the project (the GUI app will prompt for unsaved changes to the project on exit). If the build is changing project macros, one alternative would be to use global macros instead (which are saved automatically on exit). Otherwise, save the project file at the end of the build:
http://www.kinook.com/Forum/showthread.php?threadid=245