Delete lock file on failure