fix pid lockfile remnant issue