I think I have seen the same error in 2.5 and guess what. The message is wrong. The file was deleted. I think this is the last file in the list and what is probably happening is that when the delete process comes out of the loop, the error message is the next statement and gets executed even though it should not.