Added check for invalid xml files
Removed openoffice lock file