If someone had the smat file open when the thread was started, I think you will get that error.
The thread will lock the SMAT file when the thread is started. If someone was looking at the file when the thread starts, then the thread cannot lock the file and will not write to it.
That is my best guess
Ryan Spires