BugFix: the lockfile was not removed. Fixed