1) if your automation cancels or if you don't close the word document (it seems you close it before quiting wordapp) after running your application then the word file stays locked. You should check and clean your processes from WINDOWS.EXE when your application fails to complete.