finish code for if the lockfile exists