Remove the lockfile at the end (fixes #1731) Makes it clearer what happens in the script output if params already exist.