remove lockfile before exiting failed build