added lock file deletion.