add IsFileLocked test, KillAllFiles